HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Files/Variables that are loaded before starting the game

04-03-2007, 06:38 PM#1
The)TideHunter(
Right.
I'm really starting to get pissed off with this map i'm making, it has alot of problems which i don't get at all.

All i need to know is the files that load before you enter the game room.
Thats when you can go through the maps list you have in your Wc3/Maps folder.
When im going through the list, casually without clicking much, and i click my map, Wc3 crash's, i don't click start or anything, just the file in the folder, which shows me the description/minimap/etc, its most probally because one of the files is currupted or something.
Whats weird though, is the editor doesnt have any problems loading or saving.
04-03-2007, 06:40 PM#2
Rising_Dusk
Quote:
When im going through the list, casually without clicking much, and i click my map, Wc3 crash's, i don't click start or anything, just the file in the folder, which shows me the description/minimap/etc, its most probally because one of the files is currupted or something.
Whats weird though, is the editor doesnt have any problems loading or saving.
Do you have a custom minimap preview?
If it doesn't conform to the necessary shape, filetype, etc. it will crash WC3 as soon as it tries to load it.
04-03-2007, 06:41 PM#3
The)TideHunter(
No, i only have three imported things at the moment, and theyre just icons.
Although, i used one of them for loading screen so it appeared black when loading, but thats not caused problems since now, i'v tested the map a few times and its not had a problem, but its worth a try i guess, i'll go see if it works.
04-03-2007, 06:46 PM#4
Vexorian
that's typically a syntax error or a malformed config function
04-03-2007, 07:05 PM#5
The)TideHunter(
I'm getting no errors from the editor.
And last time when i had a error in my code and tried to run it, it attempted to open it, the big box thing went up like it was going to bring back a new screen down, then brought the same one down, cause it failed to load.

Still no luck. Loading screen wasnt a problem.
EDIT: What do you mean by malformed config function? The one in .j?
EDIT2:
Collapse JASS:
function config takes nothing returns nothing
    call SetMapName( "TRIGSTR_041" )
    call SetMapDescription( "TRIGSTR_043" )
    call SetPlayers( 10 )
    call SetTeams( 10 )
    call SetGamePlacement( MAP_PLACEMENT_TEAMS_TOGETHER )

    call DefineStartLocation( 0, -6272.0, 7232.0 )
    call DefineStartLocation( 1, 0.0, 7232.0 )
    call DefineStartLocation( 2, 6400.0, 7232.0 )
    call DefineStartLocation( 3, -6272.0, 192.0 )
    call DefineStartLocation( 4, 0.0, 192.0 )
    call DefineStartLocation( 5, 6400.0, 192.0 )
    call DefineStartLocation( 6, -6272.0, -6592.0 )
    call DefineStartLocation( 7, 0.0, -6592.0 )
    call DefineStartLocation( 8, 6400.0, -5568.0 )
    call DefineStartLocation( 9, -64.0, -3840.0 )

    // Player setup
    call InitCustomPlayerSlots(  )
    call InitCustomTeams(  )
    call InitAllyPriorities(  )
endfunction

EDIT3: Screen if that helps.

Screenshot

04-03-2007, 07:27 PM#6
Rising_Dusk
Could you elaborate exactly what you do that makes this crash happen?
Like, what do you do in the editor that leads up to the crash?
04-03-2007, 07:32 PM#7
The)TideHunter(
Its not really the editor the makes it crash.
If i use either way, testmap in the editor, or go to wc3 manually, search for the game, and click on it, it will crash.
I really dont have a clue whats causing it to crash, it was working fine not long ago, i changed a bit of code, saved it, working fine, starting fiddling about with multiboards with the stupid multiboarditem's, saved it, no errors, tried to test to see what it looks like, crash, tried many times but still crash's.
After about 15 times i decided to come here.

EDIT: Found the problem, and im still like wtf.
Having this:
multiboard m = CreateMultiboard() in my globals block caused the crash, it works fine if i remove this. I'm gonna add it again and see if it crashes.

EDIT2: Yep, the multiboard, added it again and crashed. I dont know if this well known or not, but it definatly causes a crash.
Conclusion: multiboard m = CreateMultiboard() in globals block causes wc3 to crash.
04-03-2007, 08:19 PM#8
Dil999
That same bug happened to me awile ago after i Dl'ed a map from blizzards site. The worst part was I had to reinstall wc3 before i could play a bnet game.
04-03-2007, 09:13 PM#9
blu_da_noob
Quote:
Originally Posted by The)TideHunter(
EDIT: Found the problem, and im still like wtf.
Having this:
multiboard m = CreateMultiboard() in my globals block caused the crash, it works fine if i remove this. I'm gonna add it again and see if it crashes.

EDIT2: Yep, the multiboard, added it again and crashed. I dont know if this well known or not, but it definatly causes a crash.
Conclusion: multiboard m = CreateMultiboard() in globals block causes wc3 to crash.

Read the JassHelper readme. Please. It's there for a reason and it warns you about this.