EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
Scripting Engine Discussion (split from Updates Announcement. AP)
Post new topic Reply to topic Goto page 1, 2  Next
View previous topic :: View next topic
Author Message
bambikaka





Joined: 26 Dec 2015



PostPosted: Sun, 8. Jan 17, 16:00    Post subject: Scripting Engine Discussion (split from Updates Announcement. AP) Reply with quote Print

Shimrod wrote:
Great to hear about X4. Crossing my fingers for a scripting engine!


i wish, it was one of the best parts of x3 Sad

Back to top
View user's profile Send private message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13451 on topic

Thank you for registering your game
PostPosted: Sun, 8. Jan 17, 16:28    Post subject: Reply with quote Print

Shimrod wrote:
Great to hear about X4. Crossing my fingers for a scripting engine!


i dont think there is any need for that because every EGO Game since X≤ has one.


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
bambikaka





Joined: 26 Dec 2015



PostPosted: Sun, 8. Jan 17, 19:37    Post subject: Reply with quote Print

UniTrader wrote:
Shimrod wrote:
Great to hear about X4. Crossing my fingers for a scripting engine!


i dont think there is any need for that because every EGO Game since X≤ has one.


well, xr does not have it... at least its nothing like we had it in x3.

Back to top
View user's profile Send private message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13451 on topic

Thank you for registering your game
PostPosted: Sun, 8. Jan 17, 20:59    Post subject: Reply with quote Print

bambikaka wrote:
UniTrader wrote:
Shimrod wrote:
Great to hear about X4. Crossing my fingers for a scripting engine!


i dont think there is any need for that because every EGO Game since X≤ has one.


well, xr does not have it... at least its nothing like we had it in x3.


so you want to deny that AI and MD Scripts exist? sure, they work diffrent than the ones X3 had, but they do exist. They may not be internally editable anymore, in preference for External Tools (the latter being a long-standing wish by the Scripting Community btw Rolling Eyes )
denying their Existence isnt helping your cause, quite the opposite - it makes you look like you have no idea what you are talking about..


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
bambikaka





Joined: 26 Dec 2015



PostPosted: Sun, 8. Jan 17, 21:26    Post subject: Reply with quote Print

UniTrader wrote:
bambikaka wrote:
UniTrader wrote:
Shimrod wrote:
Great to hear about X4. Crossing my fingers for a scripting engine!


i dont think there is any need for that because every EGO Game since X≤ has one.


well, xr does not have it... at least its nothing like we had it in x3.


so you want to deny that AI and MD Scripts exist? sure, they work diffrent than the ones X3 had, but they do exist. They may not be internally editable anymore, in preference for External Tools (the latter being a long-standing wish by the Scripting Community btw Rolling Eyes )
denying their Existence isnt helping your cause, quite the opposite - it makes you look like you have no idea what you are talking about..


lol, poor try, nobody was denying anything, you know just as i know i was talking about the internal editor and thats called scripting engine... notepad isnt one.

Back to top
View user's profile Send private message
Ketraar
Moderator (PortuguÍs)
Moderator (PortuguÍs)

MEDALMEDAL

Joined: 21 May 2004
Posts: 8467 on topic
Location: Guimar„es (Portugal)
Thank you for registering your game
PostPosted: Sun, 8. Jan 17, 21:37    Post subject: Reply with quote Print

Shouldn't a SW dev know what a scripting engine is? Or how do you think those xml files are parsed, magic? Rolling Eyes

MFG

Ketraar

Back to top
View user's profile Send private message Send e-mail
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13451 on topic

Thank you for registering your game
PostPosted: Sun, 8. Jan 17, 21:40    Post subject: Reply with quote Print

Ketraar wrote:
Or how do you think those xml files are parsed, magic? Rolling Eyes


Nope, the Magic was in X3, especially the Price Calculation Very Happy i doubt anybody knows how it actually works, and afaik it has been unchanged since X-BtF


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
bambikaka





Joined: 26 Dec 2015



PostPosted: Sun, 8. Jan 17, 21:48    Post subject: Reply with quote Print

Ketraar wrote:
Shouldn't a SW dev know what a scripting engine is? Or how do you think those xml files are parsed, magic? Rolling Eyes

MFG

Ketraar


did you mean a mod? hmm, not necessarily... xml files are parsed by xml parsing not scripting, you know scripting is the process of writing the scripts and a scripting engine is what allows the user to write scripts... parsing/compiling them is an other category. but i quit this pointless offing...

Back to top
View user's profile Send private message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13451 on topic

Thank you for registering your game
PostPosted: Sun, 8. Jan 17, 22:35    Post subject: Reply with quote Print

bambikaka wrote:
you know scripting is the process of writing the scripts and a scripting engine is what allows the user to write scripts...


Nope, a Scripting Engine is the Part of a Program which interprets and executes small Programs (aka Scripts) to run in the Environment given by the Scripting Engine. Where these Programs/Scripts are written is not part of the Definition - it may be internally in the main Program, like in X2/X3 (which has this as primary method of Creating them, and that is VERY unusual for Scripting Languages. As secondary means to write and test short sequences of Code, or point to external files to be executed, it is far more common) or, more commonly, by Text Editors, which even have helpful highlighting and Block Folding for them. (Example for a proper Editor would be Notepad++, and examples for Scripting Languages primarily edited this way are Lua, Bash and Windows Shell (aka bat(ch) files))


_________________
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
Ketraar
Moderator (PortuguÍs)
Moderator (PortuguÍs)

MEDALMEDAL

Joined: 21 May 2004
Posts: 8467 on topic
Location: Guimar„es (Portugal)
Thank you for registering your game
PostPosted: Mon, 9. Jan 17, 00:01    Post subject: Reply with quote Print

UniTrader wrote:
Nope, the Magic was in X3, especially the Price Calculation Very Happy i doubt anybody knows how it actually works, and afaik it has been unchanged since X-BtF

You refer to RelVal I presume and yes it has "magic" noted in the comments of the var. Very Happy

MFG

Ketraar

Back to top
View user's profile Send private message Send e-mail
jack775544





Joined: 13 Dec 2011
Posts: 1111 on topic
Location: Australialand
Thank you for registering your game
PostPosted: Tue, 10. Jan 17, 11:44    Post subject: Reply with quote Print

Despite the scripting being perfectly fine in XR, I would definitely have no complaints if it was something a bit less unwieldy as XML in X4.
My dream would be a Python package written by egosoft that could interact with the game, but that is more my love for Python then anything else Smile


_________________
1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.
Back to top
View user's profile Send private message
Ketraar
Moderator (PortuguÍs)
Moderator (PortuguÍs)

MEDALMEDAL

Joined: 21 May 2004
Posts: 8467 on topic
Location: Guimar„es (Portugal)
Thank you for registering your game
PostPosted: Tue, 10. Jan 17, 13:20    Post subject: Reply with quote Print

But mind that many of us modders are not programmers and thus a more simple approach like xml will allow more people to create content.

MFG

Ketraar

Back to top
View user's profile Send private message Send e-mail
Xenon_Slayer
EGOSOFT
EGOSOFT



Joined: 09 Nov 2002
Posts: 10737 on topic
Location: Camping the North Gate of Black Hole Sun
Thank you for registering your game
PostPosted: Tue, 10. Jan 17, 14:11    Post subject: Reply with quote Print

bambikaka wrote:
UniTrader wrote:
bambikaka wrote:
UniTrader wrote:
Shimrod wrote:
Great to hear about X4. Crossing my fingers for a scripting engine!


i dont think there is any need for that because every EGO Game since X≤ has one.


well, xr does not have it... at least its nothing like we had it in x3.


so you want to deny that AI and MD Scripts exist? sure, they work diffrent than the ones X3 had, but they do exist. They may not be internally editable anymore, in preference for External Tools (the latter being a long-standing wish by the Scripting Community btw Rolling Eyes )
denying their Existence isnt helping your cause, quite the opposite - it makes you look like you have no idea what you are talking about..


lol, poor try, nobody was denying anything, you know just as i know i was talking about the internal editor and thats called scripting engine... notepad isnt one.


People who edit XML in notepad scare me Rolling Eyes

But yes, to clarify the terms we use: A Script Engine is the part of the game which parses the script files and executes them. IIRC it started with the X2 AI engine, then the X3TC Mission Director. XR has one for AI and one for MD but they share a lot of functionality and syntax.

The in-game Script Editor is what is not in XR, just as the X3 MD didn't have one. Visual Studio is usually the standard for that kind of XML editing, although I expect notepad++ has some plugins to help.

I'm not going to start on the pros and cons of each approach, just wanted to clear things up.

Back to top
View user's profile Send private message Send e-mail
ubuntufreakdragon



MEDALMEDALMEDAL

Joined: 23 Jun 2011
Posts: 3651 on topic
Location: Das Randland des Wahnsinns!
Thank you for registering your game
PostPosted: Tue, 10. Jan 17, 15:08    Post subject: Reply with quote Print

the .xml reduces pretty much the reading speed, and for newbies it could be pretty difficult to understand that they have to close tags etc.
And from logic Point the xml scripts work like a programing language so non programmers have to learn programming for both. Rolling Eyes
a non compiled lang like Python script might be a better approach.
the xml approach was good for tfiles but xml md and ai should die, so Ketraar has to learn something new Razz


_________________
My X3 Mods

XRebirth, things left to patch:
In General; On Firing NPC's; In De Vries; Out Of Zone; And the Antiwishlist
Back to top
View user's profile Send private message
Ketraar
Moderator (PortuguÍs)
Moderator (PortuguÍs)

MEDALMEDAL

Joined: 21 May 2004
Posts: 8467 on topic
Location: Guimar„es (Portugal)
Thank you for registering your game
PostPosted: Tue, 10. Jan 17, 16:13    Post subject: Reply with quote Print

ubuntufreakdragon wrote:
the xml approach was good for tfiles but xml md and ai should die, so Ketraar has to learn something new Razz

I already have a job, not having a sensible way to mod the games will only result in me playing more EU4 instead. Razz

MFG

Ketraar

Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2  Next
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Control Panel
Login Data
The time now is Thu, 19. Oct 17, 16:43

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.56772 seconds, sql queries = 29