Writing a plugin?

View previous topic View next topic Go down

Writing a plugin?

Post by Tstageman on Sat Jun 09, 2012 6:38 pm

Folks,

Just a quick question, what is involved in writing a plugin? I know basically what they are for but have no idea about how to write/make one or edit one or anything like that. I am looking to write a plugin for in game announcements such as for the London Underground routes we have.

Kind Regards

Tom
avatar
Tstageman

Posts : 154
Join date : 2011-10-21

Back to top Go down

Re: Writing a plugin?

Post by LabRatAndy on Sat Jun 09, 2012 7:25 pm

If you don't know how to programme in one of the .net languages, you'll need to learn one as a minimum. Can give a link to a good free C# e-book if you want.
The announcement in LU routes are I believe nothing to do with any plugin. I think they are just announcements as part of the .sta command or a .announce (might not be the right name) command.

LabRatAndy

Posts : 98
Join date : 2011-08-29

Back to top Go down

Re: Writing a plugin?

Post by Tstageman on Sat Jun 09, 2012 9:18 pm

Yes, they normally are part of the actual route file, I have used them in that format before, but I was looking to bring the announcements feature a little further on by getting into plugins...Yes please that'd be great.

Tom
avatar
Tstageman

Posts : 154
Join date : 2011-10-21

Back to top Go down

Re: Writing a plugin?

Post by LabRatAndy on Sat Jun 09, 2012 9:27 pm


LabRatAndy

Posts : 98
Join date : 2011-08-29

Back to top Go down

Re: Writing a plugin?

Post by Quork on Sat Jun 09, 2012 9:38 pm

Please be aware there currently can be only one plugin at once. Making either OpenBVE multiplugin-usable or creating a socket plugin would be, in my eyes, something on the very top of the priority list.
avatar
Quork

Posts : 1098
Join date : 2012-05-05
Age : 26
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

Re: Writing a plugin?

Post by joeyfjj on Sun Jun 10, 2012 3:57 pm

I used this, buried deep within a no-longer-existent forum.

http://odakyufan.zxq.net/trainscript/index.html

joeyfjj

Posts : 265
Join date : 2011-07-30
Location : Singapore

http://joeyfoo.com

Back to top Go down

Re: Writing a plugin?

Post by alvinhochun on Mon Jun 11, 2012 7:43 am

Writing a plugin is really simple. You only need to know ANY one of those .NET languages (official languages are C#, VB .NET, C++ CLI) (unofficial? like in SharpDevelop they support Boo, F#, Python, Ruby also) and also a copy of the original openBVE documentation.
avatar
alvinhochun

Posts : 88
Join date : 2012-05-08
Location : Hong Kong

Back to top Go down

Re: Writing a plugin?

Post by Drag0nflamez on Mon Jun 11, 2012 4:45 pm

F# is also official.. (it's included with VS2010), also, C++ is NOT .NET.

Drag0nflamez

Posts : 203
Join date : 2012-05-11
Location : The Netherlands

Back to top Go down

Re: Writing a plugin?

Post by alvinhochun on Tue Jun 12, 2012 2:48 am

Drag0nflamez wrote:C++ is NOT .NET.
I think you need to read this http://en.wikipedia.org/wiki/C%2B%2B/CLI
avatar
alvinhochun

Posts : 88
Join date : 2012-05-08
Location : Hong Kong

Back to top Go down

Re: Writing a plugin?

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum