project-navigation
Personal tools

Author Topic: Error after editing maps.ufo  (Read 3198 times)

Offline jareyes

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Error after editing maps.ufo
« on: July 10, 2012, 01:57:25 am »
Hello,

I followed the instructions in the scripting section on how to remove a map from my campaign. I simply changed the campaign bool value to false, and went on about my business.

However, after trying to start the game I get this error:

Com_ParseMapDefinition: Max mapdef hit

This error is confusing because all I did was edit one line.

Any advice or suggestions would be greatly appreciated.

Thanks,

-JAR

Offline jareyes

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Error after editing maps.ufo
« Reply #1 on: July 10, 2012, 04:02:29 am »
FYI, I resolved the error myself.

I decided to make a copy of the original maps.ufo file and retain it in the pk3 file. I named this copy "maps.original.ufo". I would imagine that the loader just checks for a string that matches the pattern (here, "maps") before the first period. Thus, my guess is it was loading the first maps.ufo file then also attempting to load the maps.original.ufo file. I can't be certain but that's my guess.

Hope this helps anyone who encounters this error in the future.

-JAR

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Error after editing maps.ufo
« Reply #2 on: July 10, 2012, 08:48:50 am »
FYI, I resolved the error myself.

I decided to make a copy of the original maps.ufo file and retain it in the pk3 file. I named this copy "maps.original.ufo". I would imagine that the loader just checks for a string that matches the pattern (here, "maps") before the first period. Thus, my guess is it was loading the first maps.ufo file then also attempting to load the maps.original.ufo file. I can't be certain but that's my guess.

Hope this helps anyone who encounters this error in the future.

-JAR

It reads *.ufo...

-geever