Light Style© by Fisana

Jump to content


Photo

Guld of botnia seems to be broke


  • Please log in to reply
3 replies to this topic

#1 nocompile

nocompile

    a.k.a trajans_advisor

  • Community Members
  • Pip
  • 73 posts

Posted 19 March 2012 - 11:42 PM

ERROR: JavaScript error: maps/random/rmgen/tileclass.js line 88
TypeError: this.inclusionCount[x] is undefined
(NaN,NaN)@maps/random/rmgen/tileclass.js:88
addToClass(NaN,NaN,0)@maps/random/rmgen/library.js:502
@maps/random/gulf_of_bothnia.js:144
ERROR: CMapGeneratorWorker::Run: Failed to load RMS 'maps/random/gulf_of_bothnia.js'
  • 0

#2 Spahbod

Spahbod

    Triplicarius

  • WFG Programming Team
  • 588 posts

Posted 20 March 2012 - 01:21 PM

Does anyone else has such a problem? I don't. Can you reproduce this? How many players are in your map?
  • 0
Omid Davoodi [ aka Spahbod ]

Wildfire Games Random Map Designer, Low-level Programmer
Contact me: myops37@yahoo.com


Support Wildfire Games!

#3 FeXoR

FeXoR

    Centurio

  • Community Members
  • PipPipPipPipPip
  • 937 posts

Posted 20 March 2012 - 01:48 PM

I had no such error in this map but I had it when the getAngle function was changed.

It was caused by the try to place terrain on a tile outside the map.

Edited by FeXoR, 20 March 2012 - 01:48 PM.

  • 0

#4 Spahbod

Spahbod

    Triplicarius

  • WFG Programming Team
  • 588 posts

Posted 20 March 2012 - 03:09 PM

Odd thing is: I don't use getAngle in the map. Do other random maps work?

I updated my library.js file and the map still works. So the problem should be with Math.js.

The problem is: I really can't figure out what is causing this problem. Nowhere in the whole rmgen I can't find a usage of those "changed" Math.js functions.

Edit: Just tested it and it isn't Math.js too. Very wired. :huh:
  • 0
Omid Davoodi [ aka Spahbod ]

Wildfire Games Random Map Designer, Low-level Programmer
Contact me: myops37@yahoo.com


Support Wildfire Games!