QUestoin about business sectors, and cities

This forum has been archived. Please use the new modding forum. If you need to retrieve a thread from here, contact BattleGoat.

Moderators: Balthagor, BattleGoat

Nerei
General
Posts: 1354
Joined: Jan 11 2016
Human: Yes

Re: QUestoin about business sectors, and cities

Post by Nerei »

I do not think he has a Mac version. The version released uses a .exe executable which will not work.
Problem with the Mac version is also from what I remember that it is in a wine wrapper so you have to go into the package to find the files you have to edit. I can try and install SRU on my Mac and look at how modding would work but it might take a bit of time and it is all but certain you have to do everything manually.
bob12333
Lieutenant
Posts: 89
Joined: May 12 2017
Human: Yes

Re: QUestoin about business sectors, and cities

Post by bob12333 »

Nerei wrote:I do not think he has a Mac version. The version released uses a .exe executable which will not work.
Problem with the Mac version is also from what I remember that it is in a wine wrapper so you have to go into the package to find the files you have to edit. I can try and install SRU on my Mac and look at how modding would work but it might take a bit of time and it is all but certain you have to do everything manually.
Alright thanks for your help I will gladly wait.
Nerei
General
Posts: 1354
Joined: Jan 11 2016
Human: Yes

Re: QUestoin about business sectors, and cities

Post by Nerei »

Just to get it out of the way always remember to make backups of anything you edit. You can copy the files out of the supremerulerultimate.app to say your desktop.
Also make a backup of anything you successfully mod. Chances are the next patch will wipe your previous work and it is easier to copy part of default.unit back in rather than making the changes again.

I have looked a bit at it and it certainly looks to be possible to mod the Mac version. It is however a bit more complex than on windows simply due to it being inside wine.

To get to the launcher in the first place your best bet is using the steam client as I am fairly certain part of the path is hidden by default.
Right click on SRU in steam => properties => local files and then browse local files.
After that we go into the Supremerulerultimate.app file (right click => show package content).
Here the path for the SRU install (basically the install on a windows machine) is:
Contents => resources => wineprefix => drive_C => winebottler

The file default.unit that needs to be edited to get the buildings to be buildable is in:
MAPS => DATA
You can use the example provided by dax1 as an example of what to change. It should make you less dependent on the headers

The folder cache contains the files that needs to be removed before you can recompile them e.g. if you remove SR1936 (again remember to make backups) and try to launch the 36 sandbox it will recompile it (it will appear to hang for some time as compiling takes time).

I have not tried to recompile any files yet but assuming it does not work completely different than on windows the cache along with your regular save files should be located in:
Users => [your user name] => My games => Supreme ruler ultimate => Savegame
Keep in mind this is outside the wine wrapper we explored above.

The file should have CACHE in its name. Rename it and place it to be identical to the one removed, place it in the cache folder and you should be done.

If you can get someone else to compile for you or if you got a copy of windows where you can do it you can just put the newly compiled file into the cache folder and it should work.
georgios
Brigadier Gen.
Posts: 600
Joined: Aug 13 2012
Human: Yes

Re: QUestoin about business sectors, and cities

Post by georgios »

Balthagor wrote: when certain conditions in a region were met, that you could build them.
We felt it important to place restrictions so you didn't suddenly build 8 tourist attractions at the bottom tip of Argentina or in Northern Siberia.
Could you tell who are these certain conditions and restrictions, or is a secret quest to find them?
Nerei
General
Posts: 1354
Joined: Jan 11 2016
Human: Yes

Re: QUestoin about business sectors, and cities

Post by Nerei »

georgios wrote:
Balthagor wrote: when certain conditions in a region were met, that you could build them.
We felt it important to place restrictions so you didn't suddenly build 8 tourist attractions at the bottom tip of Argentina or in Northern Siberia.
Could you tell who are these certain conditions and restrictions, or is a secret quest to find them?
I think you missed what Balthagor said.
Balthagor wrote:The effects of these facilities is quite significant. The original design was that, when certain conditions in a region were met, that you could build them. The facilities got in, but the opportunities to add more did not. We felt it important to place restrictions so you didn't suddenly build 8 tourist attractions at the bottom tip of Argentina or in Northern Siberia.
The highlight is mine.

Basically as I understand it the plan was to allow more to be added in some way but that mechanic was never added.
georgios
Brigadier Gen.
Posts: 600
Joined: Aug 13 2012
Human: Yes

Re: QUestoin about business sectors, and cities

Post by georgios »

You mean that they were planning a form of unlocking buildings that later was cancelled.

I believed that under the suitable conditions business/tourist centers would appear automatically as bonus buildings!
User avatar
Balthagor
Supreme Ruler
Posts: 22099
Joined: Jun 04 2002
Human: Yes
Location: BattleGoat Studios

Re: QUestoin about business sectors, and cities

Post by Balthagor »

georgios wrote:You mean that they were planning a form of unlocking buildings that later was cancelled...
This is correct. Events could be used to make them start construction under specific conditions but each event would have to be set up manually.
Chris Latour
BattleGoat Studios
chris@battlegoat.com
georgios
Brigadier Gen.
Posts: 600
Joined: Aug 13 2012
Human: Yes

Re: QUestoin about business sectors, and cities

Post by georgios »

You mean eventbcond parameter?

What conditions are selectable? And how they are defined?
mikeownage
Colonel
Posts: 273
Joined: Jun 25 2008
Location: United States
Contact:

Re: QUestoin about business sectors, and cities

Post by mikeownage »

bob12333 wrote:
Nerei wrote:Open default.unit and change the value of NoBuild from 1 to 0 on the item you want to be buildable. Recompile and it should be buildable. You can refer to the guide on recompiling on the wiki
mikeownage has made a tool that might make it less likely to break the file and find what value to change as there are a lot of them but from what I can tell it is missing a search function.
Building are somewhere around ID21000 and down.
Sorry I cannot be more specific but I am writing from memory and a copy of default.unit that I have on my laptop. I do not have a game to test it on myself right now.
oh okay. Do you know if he has a mac version or if the version he created would work on mac.
it may work if you install mono for mac: http://www.mono-project.com/docs/gettin ... stall/mac/
Nerei wrote:Open default.unit and change the value of NoBuild from 1 to 0 on the item you want to be buildable. Recompile and it should be buildable. You can refer to the guide on recompiling on the wiki
mikeownage has made a tool that might make it less likely to break the file and find what value to change as there are a lot of them but from what I can tell it is missing a search function.
Building are somewhere around ID21000 and down.
Sorry I cannot be more specific but I am writing from memory and a copy of default.unit that I have on my laptop. I do not have a game to test it on myself right now.
You can use the filters to refine what data you see.
bob12333
Lieutenant
Posts: 89
Joined: May 12 2017
Human: Yes

Re: QUestoin about business sectors, and cities

Post by bob12333 »

alright sounds good, thanks. HOwever, on the mac version of Default.unit that section of noBuild is actually left blank, so I have no idea what now I'm suppose to do! There are no 0s or , or anything its just left blank.
dax1
Brigadier Gen.
Posts: 511
Joined: Apr 05 2012
Human: Yes
Location: Italy

Re: QUestoin about business sectors, and cities

Post by dax1 »

bob12333 wrote:alright sounds good, thanks. HOwever, on the mac version of Default.unit that section of noBuild is actually left blank, so I have no idea what now I'm suppose to do! There are no 0s or , or anything its just left blank.
,, = ,0,
it's the same
Con forza ed ardimento
bob12333
Lieutenant
Posts: 89
Joined: May 12 2017
Human: Yes

Re: QUestoin about business sectors, and cities

Post by bob12333 »

dax1 wrote:
bob12333 wrote:alright sounds good, thanks. HOwever, on the mac version of Default.unit that section of noBuild is actually left blank, so I have no idea what now I'm suppose to do! There are no 0s or , or anything its just left blank.
,, = ,0,
it's the same
Oh okay, on my Mac it is this 21102, "Business Sector", 21, 366, , , , 2, , , 0, , *, , , , , , 21998, , 0, , , , , 400.000, 15000.000, 250000, 0, , , 0.000, , , , 0.000, , 0, 0, 0, 0, 0, 0, 0, 0, 0, 900, 900, 900, , 0, , , , 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, , , , 1, , , , , 0, , , , , 0, , , , , , , 90, , 0, , , , ,
. Which part of it would I need to make a 1? its alittle confusing because it is lined up at all.
dax1
Brigadier Gen.
Posts: 511
Joined: Apr 05 2012
Human: Yes
Location: Italy

Re: QUestoin about business sectors, and cities

Post by dax1 »

bob12333 wrote:
dax1 wrote:
bob12333 wrote:alright sounds good, thanks. HOwever, on the mac version of Default.unit that section of noBuild is actually left blank, so I have no idea what now I'm suppose to do! There are no 0s or , or anything its just left blank.
,, = ,0,
it's the same
Oh okay, on my Mac it is this 21102, "Business Sector", 21, 366, , , , 2, , , 0, , *, , , , , , 21998, , 0, , , , , 400.000, 15000.000, 250000, 0, , , 0.000, , , , 0.000, , 0, 0, 0, 0, 0, 0, 0, 0, 0, 900, 900, 900, , 0, , , , 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, , , , 1, , , , , 0, , , , , 0, , , , , , , 90, , 0, , , , ,
. Which part of it would I need to make a 1? its alittle confusing because it is lined up at all.
dax1 wrote:
bob12333 wrote:
Balthagor wrote:Correct. Located in /maps/data.

There is lots of information on the supremewiki about modding;

http://www.supremewiki.com/node/306
Okay thanks, I know about the wiki page, however it doesn't SAY WHAT TO DO - HOW TO CHANGE it so I can build business sector, etc in the Define.unit file for business sector it says this 21102, "Business Sector", 20, 366, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21998, , 0, , , , , 400.000, 15000.000, 250000, 0, 0, 0, 0.000, 0, 0, 0, 0.000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 900, 900, 900, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, , , , ,
. What do I need to change on this to make it so I can build them.
I think u wrong to copy
this is the correct:
21102, "Business Sector", 21, 366, , , , 2, , , 0, , *, , , , , , 21998, , 0, , , , , 400.000, 15000.000, 250000, 0, , , 0.000, , , , 0.000, , 0, 0, 0, 0, 0, 0, 0, 0, 0, 900, 900, 900, , 0, , , , 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, , , , 1, , , , , 0, , , , , 0, , , , , , , 90, , 0, , , , ,

I dont know if enought but try this:
21102, "Business Sector", 21, 366, , , , 2, , , 0, , *, , , , , , 21998, , 0, , , , , 400.000, 15000.000, 250000, 0, , , 0.000, , , , 0.000, , 0, 0, 0, 0, 0, 0, 0, 0, 0, 900, 900, 900, , 0, , , , 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, , , , 1, , , , , 0, , , , , 0, , , , , , , 90, , 0, , , , ,

and recache...
It's in red!!
but I'm not sure if it work.
Con forza ed ardimento
bob12333
Lieutenant
Posts: 89
Joined: May 12 2017
Human: Yes

Re: QUestoin about business sectors, and cities

Post by bob12333 »

Alright sounds good! Thanks for help!
Post Reply

Return to “Modding SRUltimate”