Jump to content


Photo

GlobalData GlobalDefines mod building trouble


  • Please log in to reply
9 replies to this topic

#1 NoSideEffects

NoSideEffects
  • Members
  • 10 posts

Posted 16 June 2008 - 03:20 AM

When I try to build my mod I continuously get some form of critical error from a define that was not found because the batch file continuously loads the cnc3xml globaldefines rather than my own custom ones. It never did this before and has only recently started.

Any suggestions on how to fix this?

Edited by NoSideEffects, 16 June 2008 - 03:20 AM.


#2 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 16 June 2008 - 05:24 AM

What have you changed recently in your mod?
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#3 NoSideEffects

NoSideEffects
  • Members
  • 10 posts

Posted 16 June 2008 - 05:52 AM

I believe I changed the texts in my STR file when it first started screwing up.

Basically from what I can tell, when buildmod.bat comes to a include in any of my files and picks up DATA:GlobalData/GlobalDefines.xml, it uses the one in cnc3xml and then gives me an error that I have duplicate defines (because my custom defines are included in my mod.xml). When I remove all but the custom defines in my custom GlobalDefines to prevent it from detecting duplicates, it gives me an error because supposedly my custom defines don't exist when it comes to a point where I use one of them.

Thank you in advance for any help you can offer.

Edited by NoSideEffects, 16 June 2008 - 05:53 AM.


#4 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 16 June 2008 - 05:57 AM

Editing the STR file would do nothing to cause the issue with defines. That's not read by BinaryAssetBuilder, which is what is causing your issue. If you're trying to change global defines, you really can't. You'll have to either change the value directly in the XML file, or create a new define to use instead. When you're using defines, you can't simply put them in the Mod.xml, they wouldn't be available in the particular file that you're using. I would recommend creating your own separate file for defines (call it MyDefines.xml if you want), and then you'll need to add that as an include for any of your files which use the new defines in it.
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#5 NoSideEffects

NoSideEffects
  • Members
  • 10 posts

Posted 16 June 2008 - 06:01 AM

Command line:

Posted Image

#6 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 16 June 2008 - 06:05 AM

Why are you including GlobalDefines.xml in your mod.xml file?
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#7 NoSideEffects

NoSideEffects
  • Members
  • 10 posts

Posted 16 June 2008 - 06:05 AM

Weird. I mean, it was working perfectly fine before--every time it came to an include which involved globaldefines.xml, it would use mine instead of the original. Now it just stopped working. I was hoping it would start working again so I wouldn't need to add an include for my custom defines into every file I would use them.

Thanks for the help though.

#8 NoSideEffects

NoSideEffects
  • Members
  • 10 posts

Posted 16 June 2008 - 06:07 AM

Why are you including GlobalDefines.xml in your mod.xml file?


I am not, it just does that for some reason.

#9 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 16 June 2008 - 06:30 AM

I guess it's probably included in AttributeModifier.xml or something like that. While the way you were doing it might have worked, the way I've outlined is the correct way, which shouldn't cause issues.
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#10 NoSideEffects

NoSideEffects
  • Members
  • 10 posts

Posted 16 June 2008 - 06:38 AM

Alright, Thanks!

You wouldn't know anything about my other issue would you?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users