Starpoint Gemini Warlords

Starpoint Gemini Warlords

View Stats:
Karporata 16 Aug, 2018 @ 11:36am
Problem with outpost/station ownership in a futur mod
Hi there!

So, I started two days ago to work on a mod which aim to change the ownership of a lot of territories. I’ve already made named station ownership, planet ownership.

I’ve some problems with fleet, who are apparently reluctant to switch from a faction to another, but I’m sure I can figure out what happens to them (surely Numibia raiders). I’ve also one problem with the FoW, but I’ve not tried many things.


Buuuuuut, the main problem is for those tiny litle space stations who are EVERYWHERE.

Example: If you take one region… Let take Sora. You have:
-Davinci space station (named, so switched easily)
-Another named station who belongs to the neophytes, but I don’t want to change the ownership on it
-Wormhole T-Gate (Easy too)
-6 gas collectors
-2 forwards outposts
-3 relay satellites
-1 repair station

https://image.noelshack.com/fichiers/2018/33/4/1534444641-20180816201741-1.jpg
(green: those I’ve made, grey: those I don’t want to change, yellow: those who I want to change ownership)

For theses four last type of stations (those in yellow), I don’t see how to change the ownership. Actually, in the game files (under NewGame), I’ve found that thos station are identified by a number.

Example, a forward outpost is like this:
https://image.noelshack.com/fichiers/2018/33/4/1534444663-aaaaaa.png

-But, I don’t know the position of the stations, so I can’t find by position
-I don’t know witch identification number they have (the number after “fo”)
-So, to change these outposts, I’ve to try to change ownership of stations one by one… That’s
clearly a task in hell to evils programmers.

So… What can I do? Maybe there is a solution to take the positions of the station easily? Maybe there is a map with the identification of all station? I’m really out of idear

My last solution is to go as close at possible to the station, save, take my position in the save, and search for a similar one in the station position… But it’s even harder that change a station one by one…

If you have an idea or a solution, let me know. Thx for reading !
Tuv
Last edited by Karporata; 16 Aug, 2018 @ 11:38am
Originally posted by kontrec:
Hey Karporata,

if you press ctrl+¸ (the button left of number 1 above the letter keys) it will open a console UI which you can use to get some of the required information. Open the little drop down menu on the right hand side and select the last option called "Starchart". Then open your Starchart and click on the object you want the information on. You will get their Keyname as well as the position of your cursor so you can use those information however you see fit.

Hope this helps you with your modding progress.
< >
Showing 1-15 of 19 comments
The author of this thread has indicated that this post answers the original topic.
kontrec 16 Aug, 2018 @ 11:58am 
Hey Karporata,

if you press ctrl+¸ (the button left of number 1 above the letter keys) it will open a console UI which you can use to get some of the required information. Open the little drop down menu on the right hand side and select the last option called "Starchart". Then open your Starchart and click on the object you want the information on. You will get their Keyname as well as the position of your cursor so you can use those information however you see fit.

Hope this helps you with your modding progress.
Karporata 16 Aug, 2018 @ 1:30pm 
Thx a lot man, you just save my mod !
That was exactly what I was asking for, splendid.
It will clearly save a lot of my time.
Again, thanks, I can now continue my mod :D
Cya around
Karporata 16 Aug, 2018 @ 3:29pm 
Well, new problem
https://image.noelshack.com/fichiers/2018/33/5/1534458328-zdzeeee.png
When I'm changing the faction owner (here, I change baeldor to Nexus), nothing change
The station remain in Baeldor control
When I change the ownership of Planet and nammed station, no problem. The gas/mining/junk stations, foward outpost, research station and even the reparation station won't change. I did not understand why actually
kontrec 17 Aug, 2018 @ 1:52am 
That should usually do the trick, but there's an alternative you can try and see if that will help.

First look in your GameRoot folder and find a file named StarpointGeminiWarlordsConfiguration.cfg. Open it with notepad, and add CheatsEnabled: 1 line somewhere, like this:

https://imgur.com/SudyHBr

Once you've done that Go over to GameRoot\Data\Scripts and find testscript.sal. Open it with notepad and write something like this, but change the KeyNames to the ones you'll be using and the faction with the faction you want to use. Make sure you've written everything exactly like this, every letter, every space, every ; and every empty row.

https://imgur.com/3jD9zLl

Once it's done, Save the script, go back to the game and press F9 button. If done correctly, the change will be visible immediately. You can then save your game and see what has changed in the save file.

Just remember, named stations are changed with "station", forward outposts are changed with "platform", and everything else, ore mines, junkyard stations, prisons, is changed through "structure"

Hope this helps :)
Last edited by kontrec; 17 Aug, 2018 @ 4:43am
Karporata 17 Aug, 2018 @ 5:39am 
Hi, thx for the answer!

After I’ve done what you say, I’ve pinpointed that the console and the in game starchat are saying different things.

Actually, it does for each platform and structure (to take the in-file difference) I’ve tried to change. I was thinking that the Starchat was correct, so I was thinking that the station still belongs to Baeldor. But, when I analyze the station with the console in starchart, the faction was correctly change.

SO… The Starchart did not follow the modification for structure and platform, but does for [named] station (and territories) …
https://i.imgur.com/1LLg3Or.jpg


Honestly, I don’t understand what is happening.
kontrec 17 Aug, 2018 @ 6:25am 
The "Faction" shown in the console UI is referring to the owner of the zone the station/outpost is located in.

When dealing with the controller objects (planets, stations and outposts that have the little military rank like icon above them) changing their owning faction will not automatically change the whole zone and its belonging structures to that faction like it does for example when you conquer a station and win over a zone during gameplay. You have to do each of those things individually.
Karporata 17 Aug, 2018 @ 6:42am 
Ok, I was thinking that what the console indicated was the owner of the station because i had the mouse on the station.
So, I don't know why when I changinf the ownership with the script as you indicated to me does nothing. I maybe missed a step, I've to try again.
kontrec 17 Aug, 2018 @ 7:27am 
It's a possibility you've miss typed something. You can always drop a screenshot, and I can take a look at it.
Karporata 17 Aug, 2018 @ 8:54am 
https://i.imgur.com/hTi3s9E.png

I've tried to press F9 a lot of time but apparently nothing is happening
Karporata 17 Aug, 2018 @ 8:56am 
Ok, my bad
I've write "CheatEnabled"
Not "CheatsEnabled"
I've to try again
Karporata 17 Aug, 2018 @ 9:55am 
Well, still nothing happen when I press F9. Don't know why that's not working
kontrec 17 Aug, 2018 @ 11:03am 
Seeing as this is an in-house script system and scripting language, everything is very delicate. You wrote "setFaction", however the proper line is "SetFaction". Scripts are very case sensitive.

Also, delete everything that is before it because it could interfere with what you're trying to do.
Karporata 18 Aug, 2018 @ 3:35am 
Hi

Thanks for the reply!
So, YES, that time, it worked fine.

So, I’ve made 2 save. One before the script run by F9 (let’s call it A), and one after (B).
I’ve observed that in the A save, the world has my test outpost (FO_497) belong to BAELDOR in the Faction line (I will talk about that later). After pressing F9 (with the correct syntax [LOL, lot of hours lost by that little S in lower case, I hate myself for that]), I’ve noticed that in the same line, in the faction characteristic of the FO_497, the NEXUS faction was here (and in game it effectively switches).

Here, I don’t understand what happen.

To “make” the world of my mod, I’ve created a new scenario (in the scenario list in the main menu). For that, I’ve created a MyMod/Date/NewGame/MyMod.sgs. In this sgs, if I change the faction line of a station or a sector, when I lunch a new game, the ownership effectively changes at the start. BUT, as explain before in another message, platform (like our FO_497) and structure the faction DO NOT change on startup (that's why it still belong to baeldor in the save A). So, I don’t know WHAT, but something erases the change that I made in MyMod.sgs for plateform and structure, and put back the vanilla ownership.

I’ve maybe a solution, by adding a script who run at the start of the NewGame for my scenario, wich include every SetFaction that I want, but it’s more worker around that a true solution.

I’ve now a new problem that prevent me for working on the mod. I d’ont know why, but my launcher won’t reconized mods who not come from the steam workshop. Previously I was publishing and updating my mod on the steam workshop, in hidden. But, now when I tried updating a got an error code in the mod manager. (I don’t write it sadly).

So, I delete the mod on the worksjop to republishing it. I got an new error code:
Error code : 10
Error! File sharing request failed! Function : Steam_wrapper::Share_callback Error occured during runtime! Function : WinMain

So, I can’t test anyfuther to solve my original problem for now x)
Last edited by Karporata; 18 Aug, 2018 @ 3:36am
kontrec 18 Aug, 2018 @ 4:32am 
There are several places where station owners are declared, and they are all sorted by priority so that when we publish newer content, we don't have to alter earlier scripts, because the newer ones will just rewrite the information over them. That's why your NewGame.sgs might fail at giving you proper faction owner. The best way to do it, without going to deep into scripts that you might not want to modify, is to do exactly what you did. Create a script that will take action at startup and change everything the way you want it to change. This will ensure that it's done properly, and will not require modification of the existing scripts that steam might restore anyways since it is known to do that.

As for the mod update issue, that seems to be more of a steam issue, then a SPGW issue, so I can't really help you much there, since it's out of my area of expertise. Maybe you can see if their support can do something to help you with your issue.
Karporata 18 Aug, 2018 @ 5:18am 
Ok, I will try that. I will see if the problem with the update/publishing persist or not.
For the Script, I will try to do that. I will update if I finally made it. Thx for all your answers! very appreciated.
< >
Showing 1-15 of 19 comments
Per page: 1530 50