HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Map doesn't work ingame

06-27-2009, 06:13 PM#1
Tot
I've made a new map, but when I try to start it some strange things happen:

I can select the map, but nothing shows up (no players, nothing, only a black box)
When I try to start it, the box moves up and returns after ~0.1 sec as empty as before

Does anyone know why

I had the same problemes with the earlyer versions of deolrin's map-contest entry
06-27-2009, 06:24 PM#2
Michael Peppers
The problem with deolrin's map seemed to be that the vJass lines in there weren't compiled, so the question is... are you using any vJass trigger/system inside your map? If yes, try re-saving the map via JNGP.

If not... post the map somewhere and some of us will take care of it (or PM me it if you prefer)
06-27-2009, 06:31 PM#3
Rising_Dusk
Recompiling it generally helps if you're having issues. Whenever I make a new map in JNGP, for instance, I have to save it twice before the vJass compiles, otherwise I get an identical problem to what you're describing. Outside of that, if you're using the return bug in your map (without some tweaks to get it to work), it won't start either. (But doesn't necessarily display the same errors yours does)
06-28-2009, 07:04 PM#4
Tot
I've tried everything you said, but nothing works

either I've a rather strange bug or I'm too stupid


REMEMBER: map's not complete
Attached Files
File type: w3xDiablo III Beta v1.17Changed.w3x (3.7 MB)
06-29-2009, 02:23 PM#5
Michael Peppers
Done. There were 12 Globals (User Declared ones) missing (Red_Hero, Blue_Hero etc.)

Use JNGP, at least Jasshelper shows these kind of errors.

P.S.: I won't open this map again, the huge wall of GUI triggers scares me to death :P
Attached Files
File type: w3xDiablo III Beta v1.17Changed.w3x (3.7 MB)
06-29-2009, 02:48 PM#6
Blubb-Tec
this one should work. if it does, please give +rep, since this took quite some time >.>
the actual problem was, that your filename* was too long. so after saving the map, it didn't even SHOW UP in wc3, testmap still worked however. making the mapname shorter helped.

E: bah, michael beat me :/ does that long mapname work for you?

Edit2: your map doesn't show up for me. did you test it? I also fixed the same missing globals, btw
Attached Files
File type: w3xDiablo3.w3x (3.7 MB)
06-29-2009, 02:57 PM#7
Alevice
Quote:
Originally Posted by Blubb-Tec
this one should work. if it does, please give +rep, since this took quite some time >.>
the actual problem was, that your mapname was too long. so after saving the map, it didn't even SHOW UP in wc3, testmap still worked however. making the mapname shorter helped.

total filepath is what makes a map name too long too.
06-29-2009, 03:11 PM#8
Michael Peppers
Quote:
Originally Posted by Blubb-Tec
E: bah, michael beat me :/ does that long mapname work for you?

Heck, I really wanted someone else to do it, cause of laziness... had you been quicker, you would have done me a favor :P

Quote:
Originally Posted by Blubb-Tec
Edit2: your map doesn't show up for me. did you test it? I also fixed the same missing globals, btw

Only on testmode, it should suffice :)
06-29-2009, 04:03 PM#9
Blubb-Tec
Quote:
Originally Posted by Alevice
total filepath is what makes a map name too long too.
yeah thats what i meant, fixed it.

@michael, no testmap doesnt suffice, because the problem was that the map didnt show up in wc3, while testmap worked perfectly fine
06-29-2009, 04:21 PM#10
Michael Peppers
Quote:
Originally Posted by Blubb-Tec
@michael, no testmap doesnt suffice, because the problem was that the map didnt show up in wc3, while testmap worked perfectly fine

Wait... what do you mean with testmap? Tot's one didn't work at all for me in test mode

Starting the map in test mode (ctrl + F9) is enough to see if it works.

And... the problem was that the map didn't work, quoting:
Quote:
Originally Posted by Tot
I can select the map, but nothing shows up (no players, nothing, only a black box)
When I try to start it, the box moves up and returns after ~0.1 sec as empty as before

My filename is the same than the map he posted here, so that's not a problem. If that is a problem, renaming a map takes like... dunno... 2 seconds?
06-29-2009, 04:31 PM#11
Blubb-Tec
Quote:
Originally Posted by Michael Peppers
Wait... what do you mean with testmap? It didn't work at all for me

Starting the map in test mode (ctrl + F9) is enough to see if it works.

And... the problem was that the map didn't work, quoting:


My filename is the same than the map he posted here, so that's not a problem. If that is a problem, renaming a map takes like... dunno... 2 seconds?

ahh okay, i'll just wrap it up to clear up the confusion: the map he uploaded showed up, but did not work ingame, neither in wc3 nor in testmap. after adding the missing globals, it worked in testmap, but didn't show up at all anymore in wc3. in order to fix this, the filename had to be made shorter.
06-29-2009, 05:03 PM#12
Alevice
well, for filepath, i mentioned the folder names too

like

maps\mydirectory1\mysubdirectory1.1\lol_heresanotherdir\map.w3x
06-29-2009, 05:26 PM#13
Blubb-Tec
Quote:
Originally Posted by Alevice
well, for filepath, i mentioned the folder names too

like

maps\mydirectory1\mysubdirectory1.1\lol_heresanotherdir\map.w3x

ahh okay, didnt know that, that might explain why it didnt work for me. +rep then
06-29-2009, 06:55 PM#14
Tot
Thx for helping me (Sorry Peppers but can't give u +rep)

HEULFLENNBUÄÄ

now nearly everything works (I can start my map BIG SMILE)


Quote:
Originally Posted by Michael Peppers
P.S.: I won't open this map again, the huge wall of GUI triggers scares me to death :P
huge wall of GUI triggers??
you scould see my Masters of WarCraft triggers! they are quite more, but there are only creeps/heros/modes, no spells ect.


but now, there is a new probleme
!!I!! !!H!!A!!T!!E!! !!F!!*!!*!!*!!I!!N!!G!! !!J!!A!!S!!S!!
!!W!!H!!Y!! !!C!!A!!N!!'!!T!! !!T!!E!!Y!! !!U!!S!!E!! !!J!!A!!V!!A!!

Collapse JASS:
scope Camlock initializer InitTrig

globals
    trigger CamLock
    integer INDEX = 0
    boolean array DEAD 
    unit array HERO
    player array PLAYERS
    integer array IND
    location LOC
endglobals

private function Actions takes nothing returns nothing
local integer index = 0
local real x
local real y
local real z

loop
    exitwhen index == INDEX
    set x = GetUnitX(HERO[index])
    set y = GetUnitY(HERO[index])
    call MoveLocation(LOC,x,y) 
    if GetLocalPlayer() == PLAYERS[index] then
        
        if DEAD[index] == false then
        set z = GetCameraField(CAMERA_FIELD_ZOFFSET)+300 - (256- GetLocationZ(LOC))-GetCameraTargetPositionZ()
        call SetCameraField(CAMERA_FIELD_ZOFFSET,z,0.5)
        call SetCameraPosition(x,y)
        endif
        call SetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK,315,1.0)
        call SetCameraField(CAMERA_FIELD_ROTATION,140,1.0)
        call SetCameraField(CAMERA_FIELD_TARGET_DISTANCE,1850,1.0)
    endif
    set index = index + 1
endloop
endfunction

private function InitTrig_CamLock takes nothing returns nothing
    set CamLock = CreateTrigger()
    set LOC = Location(0,0)
    set DEAD[0] = false
    set DEAD[1] = false
    set DEAD[2] = false
    set DEAD[3] = false
    set DEAD[4] = false
    set DEAD[5] = false
call TriggerRegisterTimerEvent(CamLock,0.017,true)
call TriggerAddAction(CamLock, function Actions)
endfunction


endscope

this trigger has more errors than lines and jasshelper and JNGP won't work on my new computer

so I would be glad if you can help me
06-29-2009, 06:57 PM#15
Blubb-Tec
that script only works with jasshelper, as it uses vJass features which are not supported by standard weu(or rather, which are added by jasshelper).