FreeOrion

Forums for the FreeOrion project
It is currently Wed Dec 13, 2017 3:10 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: GameRule idea re FOCS
PostPosted: Tue Sep 12, 2017 5:21 pm 
Offline
Space Squid

Joined: Sat Dec 10, 2011 5:46 am
Posts: 52
I think it would be useful if game rules accept FOCS scripts.

_________________
Gentoo Linux amd64, gcc-6.4.0, boost-1.63.0
Ubuntu Server 16.04.3 x64, gcc-5.4, boost-1.58.0
Welcome to multiplayer public server at 78.47.71.237. Version 2017-12-11.05ee54a
SMAC participant: play multiplayer with us!


Top
 Profile  
 
 Post subject: GameRule idea re FOCS
PostPosted: Tue Sep 12, 2017 5:47 pm 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4390
o01eg wrote:
I think it would be useful if game rules accept FOCS scripts.
I can't really figure out what you are meaning there. If you can clarify your idea, it sounds like it should have a thread of its own.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Tue Sep 12, 2017 8:45 pm 
Offline
Space Squid

Joined: Sat Dec 10, 2011 5:46 am
Posts: 52
Dilvish wrote:
o01eg wrote:
I think it would be useful if game rules accept FOCS scripts.
I can't really figure out what you are meaning there. If you can clarify your idea, it sounds like it should have a thread of its own.


Allow to enter string which will be processed by FOCS interpretator. So the host can provide more complex logic without distributing its own default/ folder.

_________________
Gentoo Linux amd64, gcc-6.4.0, boost-1.63.0
Ubuntu Server 16.04.3 x64, gcc-5.4, boost-1.58.0
Welcome to multiplayer public server at 78.47.71.237. Version 2017-12-11.05ee54a
SMAC participant: play multiplayer with us!


Top
 Profile  
 
PostPosted: Tue Sep 12, 2017 9:02 pm 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4390
o01eg wrote:
Allow to enter string which will be processed by FOCS interpretator. So the host can provide more complex logic without distributing its own default/ folder.
I'm still not understanding. A GameRule itself is, to my understanding, really just another way of specifying a value, in most respects very closely related to the Galaxy Setup values except directed towards types of values that we think of as more part of a game rule rather than part of the galaxy description.

None of those values, whether Galaxy Setup values or GameRule values, matter at all unless they are referenced in the galaxy creation scripts or in FOCS scripts. So being able to script up a "GameRule" at the galaxy setup screen isn't going to accomplish anything by itself, not unless you have script content that references the GameRule, whether or not you somehow have that GameRule referencing other bits of FOCS script content. So to accomplish anything would require a fair bit of editing, and then you may as well do that in a regular editor (and distribute your content like is currently possible, if you are playing multiplayer), rather then trying to script up content on the fly in the Setup Window.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Wed Sep 13, 2017 5:03 am 
Offline
Space Squid

Joined: Sat Dec 10, 2011 5:46 am
Posts: 52
GameRule value also distributed itself in the multiplayer game so the host doesn't distribute full content if only GameRule values are changed.

_________________
Gentoo Linux amd64, gcc-6.4.0, boost-1.63.0
Ubuntu Server 16.04.3 x64, gcc-5.4, boost-1.58.0
Welcome to multiplayer public server at 78.47.71.237. Version 2017-12-11.05ee54a
SMAC participant: play multiplayer with us!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group