Jump to content


Photo

Error creating a new unit for a new faction


Best Answer knight errant, 02 September 2016 - 04:55 PM

Thank you so much!!

I added ; before the #includes thing and i fixed the errors it gave me copying the scrips from other inis

And now it works! :)

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 knight errant

knight errant
  • Members
  • 22 posts

Posted 30 August 2016 - 09:31 AM

Hi guys,

I had this error:

http://imgur.com/JOOErnN

Adding this unit:(actually copying the "hobbitbow" ini from edain mod)(Some hobbit archers for a hobbit faction)

Spoiler

 

Because previously i've followed this guide: https://www.the3rdag...tem-183?addview

with the files from edain mod, and in game the archers worked exept for the animations

The code was:

Spoiler


Edited by knight errant, 30 August 2016 - 09:33 AM.


#2 Easterling26

Easterling26
  • Members
  • 63 posts

Posted 01 September 2016 - 10:51 AM

Hi knight errant.

 

I also had this error several times.

What I usually do to see if my unit actually

works in game is I add ; to the code.

 

So in your case it would have to look like this.

;StunDrawModuleSmall.Inc

 

By adding this ; to your code it will disable the code.

 

I dont know if this code is required for anything special but just

add this ; to all the StunDrawModuleSmall.Inc in your units ini file

and start the game to see if you still get the crash.

 

This should prevent the game from crashing.

Once the game starts without crashing you can check

if this module is required.

 

You might also want to add this ; to this part of your code.

#include "..\..\..\includes\StandardUnitEvaEvents.inc"

 

So this is how it should look.

;#include "..\..\..\includes\StandardUnitEvaEvents.inc"

 

I have also had trouble with the above mentioned part of the code.

So simply disable the code and try to start the game.


Edited by Easterling26, 01 September 2016 - 10:55 AM.


#3 knight errant

knight errant
  • Members
  • 22 posts

Posted 02 September 2016 - 04:55 PM   Best Answer

Thank you so much!!

I added ; before the #includes thing and i fixed the errors it gave me copying the scrips from other inis

And now it works! :)


Edited by knight errant, 02 September 2016 - 04:57 PM.


#4 Easterling26

Easterling26
  • Members
  • 63 posts

Posted 02 September 2016 - 09:21 PM

I am always happy to help.

 

Should you need more just let me know

and I try to help.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users