Adding Unique Units

Modding, Map Editor, IES Scripting and Other Questions
Post Reply
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

Adding Unique Units

Post by PaulStretch »

So I created a new unit which works perfectly fine in the game, until I try to make it a unique unit. It gives the following error.
error.jpg
error.jpg (38.06 KiB) Viewed 1148 times
Here is the techtreenode, unit file, and the unitupgrade files.
help.jpg
help.jpg (241.07 KiB) Viewed 1148 times
help3.jpg
help3.jpg (132.92 KiB) Viewed 1148 times
help 2.jpg
help 2.jpg (468.49 KiB) Viewed 1148 times
I noticed if I try to make any other vanilla unit unique (ex. made the heavy infantry unique), it gives the same error. Is there another file somewhere that I have to change in order to add additional unique units?

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

Re: Adding Unique Units

Post by Dr.MonaLisa »

That's strange. I believe other EE2 mods (Realistic Mod, EE4) use many unique units (units different for each civilization). Are you sure that all text entries you add are available in files?
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

Re: Adding Unique Units

Post by PaulStretch »

available in files? Like the file has been added to dbunitfiles? If so yeah. Like I said, the unit works if it hasn't been assigned to a civilization. Also, it only crashed if I use the civilization the unit is assigned to. I don't know if it's relevant, but i'm using the developer version of EE2 1.5, and the install i have is from GOG Games
User avatar
Dr.MonaLisa
High Representative
Posts: 8698
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Adding Unique Units

Post by Dr.MonaLisa »

Can you maybe try how it's done in EE4 mod? You'd then be able to search in EE2X_db.zip for the unit type and all files it has edited for this unit.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
These users thanked the author Dr.MonaLisa for the post:
PaulStretch
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

Re: Adding Unique Units

Post by PaulStretch »

I looked through EE4, couldn't see anything different than how I did it. Another thing is the unique unit will load in the map editor, but not in skirmish. So maybe it's something to do with skirmish settings. (Update) Ok so for some reason it this isn't a problem with Art of Supremacy, just Empire Earth 2
User avatar
Dr.MonaLisa
High Representative
Posts: 8698
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Adding Unique Units

Post by Dr.MonaLisa »

Interesting. Maybe that's the reason all these mods are AOS-only.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
These users thanked the author Dr.MonaLisa for the post:
PaulStretch
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

Re: Adding Unique Units

Post by PaulStretch »

Well now I know lol
Post Reply

Return to “Questions”