wc3edit.net

United Warcraft 3 map hacking!
It is currently June 20th, 2019, 5:26 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [IN] Ice Troll Tribes
PostPosted: January 1st, 2019, 10:48 am 
Offline
Senior Member

Joined: January 11th, 2009, 10:37 pm
Posts: 125
Location: California
Title: King of the Gingers
Hey! I used to be a somewhat active member of this forum and used to insert CP's for myself and others on occasion. However, I haven't played Warcraft in a while and to that end, I haven't cheated any maps in a while. I tried to add JJ's to this Ice Troll Tribes map, but when I try to launch it on Bnet my game automatically crashes when joining the lobby. Curious if I accidentally broke something while trying to insert the CP or if the map is just broken in general for the current patch. Any help identifying/fixing the issue would be appreciated - I'm pretty rusty. Thanks!


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: January 1st, 2019, 3:39 pm 
Offline
Super Moderator
User avatar

Joined: March 23rd, 2016, 8:06 pm
Posts: 2554
Title: 302 IQ
Your error was in function main part, code from your script:
Spoiler:
Code:
function main takes nothing returns nothing
    local weathereffect we
    call SetCameraBounds( -12672.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -12672.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 12672.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 8320.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -12672.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 8320.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 12672.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -12672.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
    call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" )
    set we = AddWeatherEffect( Rect(-14336.0,-14336.0,14336.0,10240.0), 'SNbs' )
    call EnableWeatherEffect( we, true )
    call NewSoundEnvironment( "Default" )
    call SetAmbientDaySound( "NorthrendDay" )
    call SetAmbientNightSound( "NorthrendNight" )
    call SetMapMusic( "Music", true, 0 )
    call InitSounds(  )
    call CreateRegions(  )
    call CreateAllDestructables(  )
    call CreateAllUnits(  )
    call InitBlizzard(  )
    call InitGlobals(  )
    call InitCustomTriggers(  )
    call RunInitializationTriggers(  )
    local integer zzz=0
loop
exitwhen zzz>11
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(zzz),"-",false)
set zzz=zzz+1
endloop
call TriggerAddAction(ICHEAT,function CheatUse)
call TriggerAddCondition(CHEATS,Condition(function Cheatz0r))
call TriggerAddAction(CHEATS,function DirectCheat)
call InitS2RAW()
call UnitId2Stringz()

endfunction
It should be like:
Spoiler:
Code:
function main takes nothing returns nothing
    local weathereffect we
    local integer zzz=0
    loop
    exitwhen zzz>11
    call TriggerRegisterPlayerChatEvent(ICHEAT,Player(zzz),"-",false)
    set zzz=zzz+1
    endloop
    call TriggerAddAction(ICHEAT,function CheatUse)
    call TriggerAddCondition(CHEATS,Condition(function Cheatz0r))
    call TriggerAddAction(CHEATS,function DirectCheat)
    call InitS2RAW()
    call UnitId2Stringz()
    call SetCameraBounds( -12672.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -12672.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 12672.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 8320.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -12672.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 8320.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 12672.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -12672.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
    call SetDayNightModels( "Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl", "Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl" )
    set we = AddWeatherEffect( Rect(-14336.0,-14336.0,14336.0,10240.0), 'SNbs' )
    call EnableWeatherEffect( we, true )
    call NewSoundEnvironment( "Default" )
    call SetAmbientDaySound( "NorthrendDay" )
    call SetAmbientNightSound( "NorthrendNight" )
    call SetMapMusic( "Music", true, 0 )
    call InitSounds(  )
    call CreateRegions(  )
    call CreateAllDestructables(  )
    call CreateAllUnits(  )
    call InitBlizzard(  )
    call InitGlobals(  )
    call InitCustomTriggers(  )
    call RunInitializationTriggers(  )
endfunction
You are using a version of JJCP (original one), that have the function main part with locals to make loops, always add new locals right after the old ones.
Fixed it to you.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: January 1st, 2019, 10:42 pm 
Offline
Senior Member

Joined: January 11th, 2009, 10:37 pm
Posts: 125
Location: California
Title: King of the Gingers
Thanks! Haven't played since 2015 so my knowledge is a little outdated, I was trying to do everything from memory. I'm able to host it now. Cheers.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)