|
|
|
|
Re: Make a compiler?
[Re: upsidedownman]
#255021
03/07/09 00:16
03/07/09 00:16
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
Serious User
|
Serious User
Joined: Aug 2005
Posts: 1,230
|
Neither of those scripting languages supports to be compiled to a windows executable natively, however. Keep in mind that you don't have to compile it to an .exe if you want to execute it, you can do that a lot easier. If you really really want to compile them or your own language to an executable, you will indeed have to write a compiler which is a really complex thing to do. In order to do that you need to know about the structure of PE executables (windows binaries) and x86 opcodes at least. Not mentioning all the bits and pieces you need for the compiler architecture. Not an easy thing to do, but if you google for the keywords I mentioned above you may find some information on these topics.
Your friendly mod is at your service.
|
|
|
Re: Make a compiler?
[Re: upsidedownman]
#255026
03/07/09 00:33
03/07/09 00:33
|
Joined: Aug 2008
Posts: 218 U.S.
GamerX
Member
|
Member
Joined: Aug 2008
Posts: 218
U.S.
|
One way you could do it is make 2 .exe's for your program one that is your program and one that is for the game then have the program copy the game.exe and have it run the users scripts and such, of course there would be more to this that you would have to figure out but this would be the essential idea. But i don't think that is legal in GS terms not sure you would have to look it up. But there is probably another way.
"You may never know what results come of your action, but if you do nothing there will be no result." -Mahatma Gandhi
|
|
|
|
|
|
|