is there any out of game API?
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 141
- Joined: Sat, 7. Feb 04, 18:58
is there any out of game API?
has anyone created an API or a list of the commands and functions for Scrpiting in X2?
P4 3.2Ghz Northwood 800FSB
ATI Radeon 9800Pro 128mb
Corsair 1Gb 400DDR Ram
Creative Audigy 2ZS
MSI 865PE Motherboard
ATI Radeon 9800Pro 128mb
Corsair 1Gb 400DDR Ram
Creative Audigy 2ZS
MSI 865PE Motherboard
-
- Posts: 5505
- Joined: Wed, 6. Nov 02, 20:31
There's a command list here: www.msci-handbook.tk
I haven't finished filling in what each does, but mostly they're self evident.
API? pass
I haven't finished filling in what each does, but mostly they're self evident.
API? pass
-
- Posts: 141
- Joined: Sat, 7. Feb 04, 18:58
-
- Posts: 860
- Joined: Fri, 26. Mar 04, 12:20
would br great if we had aceess to an external compiler and dummy sciprt inturpriter. Anyone have any clue as to how to generate the code array that the scripts run off. IF An outside X2 scripting utility was there especialy the ability to do debugging runs this would make life alot easyer tah using the SE!!!! althoug the SE is functional noting beats a good multiwindowed app with mouse access
i7-930 2.8Ghz quad core
6gig DDR3-1600 3 channel Ram
Nvida GTX470
64gig SSD / 1TB Hitachi
6gig DDR3-1600 3 channel Ram
Nvida GTX470
64gig SSD / 1TB Hitachi
-
- Posts: 141
- Joined: Sat, 7. Feb 04, 18:58
that could be created, but it would be a big project for one person. i created a machine emulator for a rather ancient computer a year or two ago (uni project). that would be fun to create one tho. and it would be really useful to most scripters
P4 3.2Ghz Northwood 800FSB
ATI Radeon 9800Pro 128mb
Corsair 1Gb 400DDR Ram
Creative Audigy 2ZS
MSI 865PE Motherboard
ATI Radeon 9800Pro 128mb
Corsair 1Gb 400DDR Ram
Creative Audigy 2ZS
MSI 865PE Motherboard
-
- EGOSOFT
- Posts: 54300
- Joined: Tue, 29. Apr 03, 00:56
The script editor is just an interface for editing an XML file. There is no underlying API that is accessible from outside the game, and no way to get between the game and the XML file to create any kind of debugging tools.
The only way to create an external editor would be to decode the underlying vocabulary used within the XML schema and build an editor around that. The only thing this would achieve would be to add a different user interface onto the editing environment.
The only way to create an external editor would be to decode the underlying vocabulary used within the XML schema and build an editor around that. The only thing this would achieve would be to add a different user interface onto the editing environment.
-
- Posts: 141
- Joined: Sat, 7. Feb 04, 18:58
-
- Posts: 1075
- Joined: Wed, 6. Nov 02, 20:31
-
- Posts: 141
- Joined: Sat, 7. Feb 04, 18:58
-
- EGOSOFT
- Posts: 54300
- Joined: Tue, 29. Apr 03, 00:56
-
- Posts: 141
- Joined: Sat, 7. Feb 04, 18:58
-
- Posts: 1075
- Joined: Wed, 6. Nov 02, 20:31
my fault, I got confused and thought I'd mentioned them in this thread already; check the thread about a script not showing up in-game, we discuss it more there - http://www.egosoft.com/x2/forum/viewtopic.php?t=47545
if all you needed was an XML editor, we'd all be using them already
I dunno, kids these days; you use terms like API, but you didn't expect the script to be tokenised for machine use?
if all you needed was an XML editor, we'd all be using them already

I dunno, kids these days; you use terms like API, but you didn't expect the script to be tokenised for machine use?

-
- Posts: 141
- Joined: Sat, 7. Feb 04, 18:58
-
- Posts: 141
- Joined: Sat, 7. Feb 04, 18:58
never really thought the acronym/term/whatever 'API' was that 'advanced' - i always like the term 'polymorphism' now that sounds cool until you find out the meaning. But lets not talk semantics.
P4 3.2Ghz Northwood 800FSB
ATI Radeon 9800Pro 128mb
Corsair 1Gb 400DDR Ram
Creative Audigy 2ZS
MSI 865PE Motherboard
ATI Radeon 9800Pro 128mb
Corsair 1Gb 400DDR Ram
Creative Audigy 2ZS
MSI 865PE Motherboard
-
- Posts: 1075
- Joined: Wed, 6. Nov 02, 20:31