Custom civs

Modding, Map Editor, IES Scripting and Other Questions
Post Reply
User avatar
Gonzalo
Posts: 336
Joined: 24 Aug 2018, 08:56
Been thanked: 3 times

Custom civs

Post by Gonzalo »

I wonder whether it's possible to make that custom civilizations can be made available for the ai on skirmish, and on the map editor. I have tried by adding code between triple quotation marks, which is on skirmish code in UI/fe_widgets.csv, into multiplayer code (same file), in the line of code which manages civilization, and in UI/sceneditor_widget.csv, but it doesn't work. It would be so amazing...

User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Custom civs

Post by Dr.MonaLisa »

I thought you said you're modding on the normal version of UP1.5? If so, the file you mentioned is incorrect, because a different one is used by UP1.5.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Gonzalo
Posts: 336
Joined: 24 Aug 2018, 08:56
Been thanked: 3 times

Re: Custom civs

Post by Gonzalo »

Sorry, thank you for the tiding. If you'd please to write here to me which file is...otherwise I shall ascertain by myself, you know. Thanks! :)

Added after 1 hour 59 minutes 47 seconds:
Thanks, but I think it's impossible, I have checked dbwidget_fe8.csv :(
User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Custom civs

Post by Dr.MonaLisa »

The only hope would be to also add the custom civs possibility in EE2X_hdrs.zip.

Somewhere in "DbPlayerDefs.h":

Code: Select all

//@EE2X part of the West region.  cannot be stuck with the rest of the west region because EE2 would not be correct anymore
	kPlayerCivilization_French,		//16
	kPlayerCivilization_Russian,	//17

	kNumPlayerCivilization,
	kPlayerCivilization_Random = -1,	// random; list before unused for settings.cfg readability
	kPlayerCivilization_Unused = -1,

	// @EE2X custom civs are marked thusly
	kPlayerCivilization_Custom = -2,
So moving without "-2" under "kPlayerCivilization_Russian" could maybe add it there. Or even changing the order from Random/Unused to be -2 and Custom to be -1.

It's unlikely that it will work anyway, as these are most likely only identifiers and the game displays custom civs using some other hardcoded function once the "-2" ID is found for the random civ. It seems like they added random civs as a "hack" method too.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Gonzalo
Posts: 336
Joined: 24 Aug 2018, 08:56
Been thanked: 3 times

Re: Custom civs

Post by Gonzalo »

Sad to read, but thank you, I'll try to tweak a little.

Added after 59 minutes 12 seconds:
No, it crashes the game :( :( :(
Post Reply

Return to “Questions”