GameRule idea re FOCS
Moderators: Oberlus, Committer
GameRule idea re FOCS
I think it would be useful if game rules accept FOCS scripts.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
GameRule idea re FOCS
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.o01eg wrote:I think it would be useful if game rules accept FOCS scripts.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0
Re: game rule to disallow doomsday weapons
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.Dilvish wrote: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.o01eg wrote:I think it would be useful if game rules accept FOCS scripts.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Re: game rule to disallow doomsday weapons
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.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.
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
Re: GameRule idea re FOCS
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 x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm