BGForums

BattleGoat Studios | Supreme Wiki | Facebook | Twitter | YouTube
It is currently May 26 2013

All times are UTC - 5 hours




Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 22 2011 
Offline
General

Joined: Sep 15 2011
Posts: 1301
Location: X:913 Y:185
The moment I hit "Submit" I found the thread in other window :lol: :lol: :lol: :lol:
I gave it just a quick look but it seems to be the thread about new code regions :D
viewtopic.php?f=48&t=13190&p=83904&hilit=new+region+code#p83904

EDIT: this is just a short thread with region code list (used and unused)...I'll have to search for more detailed thread about creating and asigning those codes to countries :-?

_________________
Image
"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr
In Brazilian IAAR as Pascoal Humberto de Souza Branco


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 22 2011 
Offline
General

Joined: Jun 23 2009
Posts: 2492
Location: x:355 y:216
Naw thats it.. alls you would do is use the new code in the Units Region code line and assign the Code to a region in the .CVP that was mentioned earlier in this thread.

For example in the modern world mod I added @ to turkey and then edited the altay from "T" to "@"

_________________
Si vis pacem, para bellum
my Supreme Ruler Cold war mods Site
Redistribution of my mods is prohibited. By downloading them you agree to not redistribute the file(s) without expressed permission.


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 22 2011 
Offline
General

Joined: Sep 15 2011
Posts: 1301
Location: X:913 Y:185
Fistalis wrote:
Naw thats it.. alls you would do is use the new code in the Units Region code line and assign the Code to a region in the .CVP that was mentioned earlier in this thread.

For example in the modern world mod I added @ to turkey and then edited the altay from "T" to "@"

Let say I want to do the same for Yugoslavia. All I would need to do is add some unused "letter" to Yugoslavia and then change all their designs from T to that new "letter"? And the region part is done in .CVP file and the unit part in .UNITS file? HUH

...sounds too simple to be truth so I definitely misunderstood something :lol: :lol:

_________________
Image
"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr
In Brazilian IAAR as Pascoal Humberto de Souza Branco


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 22 2011 
Offline
General

Joined: Jun 23 2009
Posts: 2492
Location: x:355 y:216
number47 wrote:
Fistalis wrote:
Naw thats it.. alls you would do is use the new code in the Units Region code line and assign the Code to a region in the .CVP that was mentioned earlier in this thread.

For example in the modern world mod I added @ to turkey and then edited the altay from "T" to "@"

Let say I want to do the same for Yugoslavia. All I would need to do is add some unused "letter" to Yugoslavia and then change all their designs from T to that new "letter"? And the region part is done in .CVP file and the unit part in .UNITS file? HUH

...sounds too simple to be truth so I definitely misunderstood something :lol: :lol:

LoL thats it. Just add you new letter to the units you want..(or replace the old letter if you want it to be exclusive to that code) in the .Unit File and add or replace it for the specific nation in the .CVP

The hardest part of modding is figuring out where everything is and how to recache. Once you got that down its all pretty easy.

_________________
Si vis pacem, para bellum
my Supreme Ruler Cold war mods Site
Redistribution of my mods is prohibited. By downloading them you agree to not redistribute the file(s) without expressed permission.


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 27 2011 
Offline
Colonel

Joined: Jul 21 2011
Posts: 456
Location: X:1827 Y:613
OK, so I understand everything that has been said so far.

However I am having difficulty with a string of different things I am trying to do in my game.

(Just as a heads up this is a long post as there is a fair bit to it!)

Basically I want to mod in a few new units and then make them usable by one nation only.

So I read through all the stuff I could find on the forums and the wiki.

And as far as I can tell the process boils down to his...

1. Create new .units file for modded units , then place new units into it (with @ as their new symbol as well as other changes)
- This I did fine with my new units into GLOBALWAR.UNIT --- Although do the new units have to have different names if they have different ids as it is a pain to rename them all! And does it matter if the units run over the ids of different catagorys? I.e if I have a missile (a class 8 unit) with an ID over 9000? as the wiki suggests that 9000-10000 is for fighters (class 9 units). Could this cause an issue?

2. Create a .scenario file based off coldwar.scenario (mine is called globalwar.scenario) and add a line under

Code:
#include "DEFAULT.UNIT", "MAPS\DATA\"


so it now includes a reference to my modded .unit file... It now reads

Code:
#include "DEFAULT.UNIT", "MAPS\DATA\"
#include "GLOBALWAR.UNIT", "MAPS\DATA\"


I should also change the line:

Code:
savfile "Cold War"


to

Code:
savfile "Global War".


Lastly I need to change the .cvp so that in the New Zealand catagory the line reading:


Code:
worldavail     N


Now reads:

Code:
worldavail     @



I then recreate the cache and it should work... (I know how to recreate the cache and move it over that I am certain of!)

Now, sadly this doesn't seem to be working or me, although I am twidiling with it and trying again. Do you have an idea why? Can you see something I am doing wrong?!? I can attach the relevant files if you think that it would help!

Also one last question, I assume that I am just able to create a new .cvp called Globalwar.cvp and just change the worldavil code in there, then change the line in the GlobalWar.Scenario to read

Code:
#ifset 0x01
#include "GlobalWar.CVP", "MAPS\"
#include "ColdWar.REGIONINCL", "MAPS\"


Instead of:

Code:
#ifset 0x01
#include "ColdWar.CVP", "MAPS\"
#include "ColdWar.REGIONINCL", "MAPS\"


Or am I wrong in thinking this? (I have not yet done this as I have enough problems trying to get it to work as it is but would like to be able to do this to help consolidate the mod!

Much much much thanks!

_________________
Much Thanks

- [On the topic of timelines] "Time isn't made of lines, it is made of circles, that's why clocks are round!" - Unknown-

Number 46-48 = First to Sixth Type Savant


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 27 2011 
Offline
General

Joined: Jun 23 2009
Posts: 2492
Location: x:355 y:216
Responses in Red to make this easier on me.
domcoppinger wrote:
OK, so I understand everything that has been said so far.

However I am having difficulty with a string of different things I am trying to do in my game.

(Just as a heads up this is a long post as there is a fair bit to it!)

Basically I want to mod in a few new units and then make them usable by one nation only.

So I read through all the stuff I could find on the forums and the wiki.

And as far as I can tell the process boils down to his...

1. Create new .units file for modded units , then place new units into it (with @ as their new symbol as well as other changes)
- This I did fine with my new units into GLOBALWAR.UNIT --- Although do the new units have to have different names if they have different ids as it is a pain to rename them all! And does it matter if the units run over the ids of different catagorys? I.e if I have a missile (a class 8 unit) with an ID over 9000? as the wiki suggests that 9000-10000 is for fighters (class 9 units). Could this cause an issue?


New ID is good enough. The names are pretty much for human use only. The game looks at them simply as a ID number.As to the ID# To be honest I really don't know. I've never added so many units that I had to run over. I wouln't think it would matter since the unit type is set by part of the code not the number.


2. Create a .scenario file based off coldwar.scenario (mine is called globalwar.scenario) and add a line under

Code:
#include "DEFAULT.UNIT", "MAPS\DATA\"


so it now includes a reference to my modded .unit file... It now reads

Code:
#include "DEFAULT.UNIT", "MAPS\DATA\"
#include "GLOBALWAR.UNIT", "MAPS\DATA\"


I should also change the line:

Code:
savfile "Cold War"


to

Code:
savfile "Global War".


Lastly I need to change the .cvp so that in the New Zealand catagory the line reading:

Code:
worldavail     N


Now reads:

Code:
worldavail     @



I then recreate the cache and it should work... (I know how to recreate the cache and move it over that I am certain of!)

Now, sadly this doesn't seem to be working or me, although I am twidiling with it and trying again. Do you have an idea why? Can you see something I am doing wrong?!? I can attach the relevant files if you think that it would help!

Looks goods make sure Everything is named exactly.. case sensitive. Also make sure your .UNIT file is in "MAPS\DATA\" since thats where you specified it was

Also one last question, I assume that I am just able to create a new .cvp called Globalwar.cvp and just change the worldavil code in there, then change the line in the GlobalWar.Scenario to read

Code:
#ifset 0x01
#include "GlobalWar.CVP", "MAPS\"
#include "ColdWar.REGIONINCL", "MAPS\"


Instead of:

Code:
#ifset 0x01
#include "ColdWar.CVP", "MAPS\"
#include "ColdWar.REGIONINCL", "MAPS\"


Or am I wrong in thinking this? (I have not yet done this as I have enough problems trying to get it to work as it is but would like to be able to do this to help consolidate the mod!
Totally correct. the easiest way to start is simply make copies of all the default files and rename them, and mod from there.

Much much much thanks!


If you continue to have issues feel free to zip up the mod and post it. I'll take a look for errors. Small errors can easily throw off the entire process and its hard to catch them without seeing the files.

_________________
Si vis pacem, para bellum
my Supreme Ruler Cold war mods Site
Redistribution of my mods is prohibited. By downloading them you agree to not redistribute the file(s) without expressed permission.


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 27 2011 
Offline
Colonel

Joined: Jul 21 2011
Posts: 456
Location: X:1827 Y:613
Firstly thanks for the speedy response!

Thats what I thought with the ID's and the catagorys, figured that it was more for human consumption and for organization but figured I should make sure!

Now, I have gone through everything (I am trying to do a far amount of stuff atm but it seems to be going alright) and have got most things working,

[_]OT
however I am still waiting on some news on treaties but that is for another thread!

My main issue here is that no matter what I do I am unable to get my units into my game, I think that the issue is more with the characters that are being assigned to the units and the country. I am trying to use "@" (obviously without the "") but for some reason I am just unable to research the units in game. I must admit I have changed a fair number of details in the file but these were more to see the effects so that I can better gauge later changes. All that aside though, yeah it would be great if you could look through it all as most likely I am just missing something stupidly small, or there is something that I really don't understand. Either way I am willing to bet that you will catch it!


Attachments:
File comment: The files that I have edited, placed in the same folder structure as on my pc! Thanks again
Test Mod files.rar [252.87 KiB]
Downloaded 35 times

_________________
Much Thanks

- [On the topic of timelines] "Time isn't made of lines, it is made of circles, that's why clocks are round!" - Unknown-

Number 46-48 = First to Sixth Type Savant
Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 27 2011 
Offline
Colonel

Joined: Jul 21 2011
Posts: 456
Location: X:1827 Y:613
Never mind, just knowing that you might look at it seems to have been enough to solve it!

Turns out that it was because I had incorrectly formatted the GLOBALWAR.UNITS so it was no longer a CSV file. However I had already compiled the changes (before I realised it was broken) that my mod was making into the default .unit file to ensure it wasn't the modded file that wasn't working. Then I hadn't removed the corresponding line from the .scenario file referencing the GLOBALWAR.UNIT (get this, I hadn't removed it because I figured that it couldn't hurt and might work as a redundancy of some kind!) But lay and behold straight after posting that message I opened up the file and all of a sudden it hit me!

So now that I have removed it everything seems to be working fine, well some things seem to be working for the moment anyway :D

Thanks!

Although unfortunately for you this of course means that from now on I know who to go when I am stuck! (As if you and Ruges weren't the ones to go to already!)

Edit:

One thing I am now noticing is that all the units are showing up as Worldwide... I suspect that this is because I have not assigned anything (other than New Zealands "Worldavail @" to it and that there is somewhere I should put it to change it from this. Or is it really set to worldwide at the moment, if so why and how can I change it?

I would check the other nations to see if it really is worldwide or just an error in displaying the correct nation without any effect. Bbut to get another country to the tech level needed would take a while even with cheats and I am way to tired right now so will check tomorrow and get back to you, unless you figure something out before then!

_________________
Much Thanks

- [On the topic of timelines] "Time isn't made of lines, it is made of circles, that's why clocks are round!" - Unknown-

Number 46-48 = First to Sixth Type Savant


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 27 2011 
Offline
General

Joined: Jun 23 2009
Posts: 2492
Location: x:355 y:216
Ya glad you noticed that.. just downloaded it and opened your unit file and the first thing i noticed was it wasnt in csv format. :lol:
As to the "worldwide" that should be a display issue since @ hasn't been assigned text to display it simply displays worldwide.

_________________
Si vis pacem, para bellum
my Supreme Ruler Cold war mods Site
Redistribution of my mods is prohibited. By downloading them you agree to not redistribute the file(s) without expressed permission.


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 27 2011 
Offline
Colonel

Joined: Jul 21 2011
Posts: 456
Location: X:1827 Y:613
Fistalis wrote:
Ya glad you noticed that.. just downloaded it and opened your unit file and the first thing i noticed was it wasnt in csv format. :lol:
As to the "worldwide" that should be a display issue since @ hasn't been assigned text to display it simply displays worldwide.


I knew that it would be something like that! :) Where do I get to this text? In the .scenario it does reference a file at

Code:
"Cold War-Text.csv", "SCENARIO\"


But I don't seem to have a corresponding file there, what am I missing?

Edit:

Nvm I have found the files but they don't seem to be the ones I am looking for! Which file contains all the relevant text?

_________________
Much Thanks

- [On the topic of timelines] "Time isn't made of lines, it is made of circles, that's why clocks are round!" - Unknown-

Number 46-48 = First to Sixth Type Savant


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 27 2011 
Offline
General

Joined: Jun 23 2009
Posts: 2492
Location: x:355 y:216
domcoppinger wrote:
Fistalis wrote:
Ya glad you noticed that.. just downloaded it and opened your unit file and the first thing i noticed was it wasnt in csv format. :lol:
As to the "worldwide" that should be a display issue since @ hasn't been assigned text to display it simply displays worldwide.


I knew that it would be something like that! :) Where do I get to this text? In the .scenario it does reference a file at

Code:
"Cold War-Text.csv", "SCENARIO\"


But I don't seem to have a corresponding file there, what am I missing?

Edit:

Nvm I have found the files but they don't seem to be the ones I am looking for! Which file contains all the relevant text?


Variables.INI
Its one of the blank spaces after Arab/pakistan.
Bad news= .INI files effect all games. modded or not.
Good news = you don't have to recache for .ini changes

_________________
Si vis pacem, para bellum
my Supreme Ruler Cold war mods Site
Redistribution of my mods is prohibited. By downloading them you agree to not redistribute the file(s) without expressed permission.


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 27 2011 
Offline
Colonel

Joined: Jul 21 2011
Posts: 456
Location: X:1827 Y:613
Fistalis wrote:
domcoppinger wrote:
Fistalis wrote:
Ya glad you noticed that.. just downloaded it and opened your unit file and the first thing i noticed was it wasnt in csv format. :lol:
As to the "worldwide" that should be a display issue since @ hasn't been assigned text to display it simply displays worldwide.


I knew that it would be something like that! :) Where do I get to this text? In the .scenario it does reference a file at

Code:
"Cold War-Text.csv", "SCENARIO\"


But I don't seem to have a corresponding file there, what am I missing?

Edit:

Nvm I have found the files but they don't seem to be the ones I am looking for! Which file contains all the relevant text?


Variables.INI
Its one of the blank spaces after Arab/pakistan.
Bad news= .INI files effect all games. modded or not.
Good news = you don't have to recache for .ini changes


Any clue which? For the moment I have just changed them all, but if you don't know once my game is done reaching (other changes) I guess I can just change them one by one to isolate which it is!

_________________
Much Thanks

- [On the topic of timelines] "Time isn't made of lines, it is made of circles, that's why clocks are round!" - Unknown-

Number 46-48 = First to Sixth Type Savant


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 27 2011 
Offline
General

Joined: Jun 23 2009
Posts: 2492
Location: x:355 y:216
domcoppinger wrote:
Any clue which? For the moment I have just changed them all, but if you don't know once my game is done reaching (other changes) I guess I can just change them one by one to isolate which it is!

No clue.. but shouldn't be hard to figure out since .INI files don't require recaching.
(my guess would be the first one for @ but i don't know for certain)

_________________
Si vis pacem, para bellum
my Supreme Ruler Cold war mods Site
Redistribution of my mods is prohibited. By downloading them you agree to not redistribute the file(s) without expressed permission.


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 27 2011 
Offline
Colonel

Joined: Jul 21 2011
Posts: 456
Location: X:1827 Y:613
Will get back to you as soon as I know.

Although First I have got to play some so might be a little bit before you know :D


Edit:
[_]OT
Also hope you don't mind me borrowing the idea of location from you! Imitation is the sincerest form of flattery!

And south east of Salina?

_________________
Much Thanks

- [On the topic of timelines] "Time isn't made of lines, it is made of circles, that's why clocks are round!" - Unknown-

Number 46-48 = First to Sixth Type Savant


Top
 Profile  
 
 Post subject: Re: Adding unit designs to a nation
PostPosted: Dec 28 2011 
Offline
General

Joined: Sep 15 2011
Posts: 1301
Location: X:913 Y:185
domcoppinger wrote:
[_]OT
Also hope you don't mind me borrowing the idea of location from you! Imitation is the sincerest form of flattery!



:lol: :lol: Fistalis, I truly hope there is a more than a bridge on your location :D
Also hope you both don't mind me borrowing the idea of location from you! Imitation is the sincerest form of flattery! :D :D

_________________
Image
"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr
In Brazilian IAAR as Pascoal Humberto de Souza Branco


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


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