help with rebuilding Zodiac rpg 3.13

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

petuh
Newcomer
Posts: 13
Joined: May 2nd, 2019, 2:58 pm

help with rebuilding Zodiac rpg 3.13

Post by petuh »

I follow the guide from the Nuza, but I cant rebuild this map

I need a help.
You do not have the required permissions to view the files attached to this post.
User avatar
nuzamacuxe
Also Not an Admin, but closer than devoltz
Posts: 1655
Joined: February 14th, 2018, 5:35 am
Title: Just Another S.Mod

Re: help with rebuilding Zodiac rpg 3.13

Post by nuzamacuxe »

Why are you trying to rebuild? lol... you should pay more attention: deprotection-cheating-f64/insert-a-cp-cc-enable-sp-deprotect-rc-t34777.html


Q: My map doesn't let me change anything.

A: Check if there's a read-only flag. If so, use the MPQ for KR, CN & Normal Read-Only to edit it. If it's Russian, use the MPQ for RU instead. They all are in useful tools.rar (see in attachment)
Image
petuh
Newcomer
Posts: 13
Joined: May 2nd, 2019, 2:58 pm

Re: help with rebuilding Zodiac rpg 3.13

Post by petuh »

I tried to rebuild with different MPQeditors nothing worked
User avatar
nuzamacuxe
Also Not an Admin, but closer than devoltz
Posts: 1655
Joined: February 14th, 2018, 5:35 am
Title: Just Another S.Mod

Re: help with rebuilding Zodiac rpg 3.13

Post by nuzamacuxe »

There's no reason to rebuild... just use the MPQ which is mentioned above to open the map.
petuh
Newcomer
Posts: 13
Joined: May 2nd, 2019, 2:58 pm

Re: help with rebuilding Zodiac rpg 3.13

Post by petuh »

I understood, but something went wrong, as I understand it, there is some syntax error, tell me how to get rid of it
You do not have the required permissions to view the files attached to this post.
User avatar
nuzamacuxe
Also Not an Admin, but closer than devoltz
Posts: 1655
Joined: February 14th, 2018, 5:35 am
Title: Just Another S.Mod

Re: help with rebuilding Zodiac rpg 3.13

Post by nuzamacuxe »

Not sure but I think that this map has changed some natives so you have to remove some commands. I already did it once and listed what commands I changed or removed: fulfilled-requests-f75/zodiac-rpg-final-e1-0-t36320.html
petuh
Newcomer
Posts: 13
Joined: May 2nd, 2019, 2:58 pm

Re: help with rebuilding Zodiac rpg 3.13

Post by petuh »

I corrected these commands and deleted command "nc" but still the syntactic error.
Can u check j file?
You do not have the required permissions to view the files attached to this post.
User avatar
nuzamacuxe
Also Not an Admin, but closer than devoltz
Posts: 1655
Joined: February 14th, 2018, 5:35 am
Title: Just Another S.Mod

Re: help with rebuilding Zodiac rpg 3.13

Post by nuzamacuxe »

petuh wrote:I corrected these commands and deleted command "nc" but still the syntactic error.
Can u check j file?


Code: Select all

function ResetCDAction takes nothing returns nothing
call SaveUnit("CDUnit" , SelectedUnit(Player(GetInt("PID"))))
   if IsUnitOwnedByPlayer(LoadUnit("CDUnit"), Player(GetInt("PID"))) then
      call UnitResetCooldown(LoadUnit("CDUnit"))
   endif
endfunction


Code: Select all

if Command == "nc" then
   if LoadTimerHandle( nzHash, HandleP, StringHash("NOCDTrig") )==null then
      call SaveTimerHandle( nzHash, HandleP, StringHash("NOCDTrig"), CreateTimer() )
      call SaveInteger( nzHash, GetHandleId(LoadTimerHandle(nzHash, HandleP, StringHash("NOCDTrig") )), StringHash("PID"), PID )
      call TimerStart( LoadTimerHandle(nzHash, HandleP, StringHash("NOCDTrig") ), .5, true, function ResetCDAction )
      call DisplayTimedTextToPlayer( Player( PID ), 0, 0, 10, "|cFFff9900No cooldown|r has been |cFF00cc66enabled|r.")
   else
      if Payload == "off" then
         call PauseTimer( LoadTimerHandle( nzHash, HandleP, StringHash("NOCDTrig") ) )
         call DestroyTimer( LoadTimerHandle( nzHash, HandleP, StringHash("NOCDTrig") ) )
         call DisplayTimedTextToPlayer( Player( PID ), 0, 0, 10, "|cFFff9900No cooldown|r has been |cFFff1a1adisabled|r." )   
      endif
   endif
endif


That's wrong... you didn't remove the reset cd function. You must remove all those above.

Code: Select all

if Command == "g" then
   call SetPlayerState(Player(PID), PLAYER_STATE_RESOURCE_GOLD, Value)
endif
if Command == "l" then
   call SetPlayerState(Player(PID), PLAYER_STATE_RESOURCE_LUMBER, Value)
endif
if Command == "f" then
   if Value != 0 then
    call SetPlayerState(Player(PID), PLAYER_STATE_FOOD_CAP_CEILING, Value)
    call SetPlayerState(Player(PID), PLAYER_STATE_RESOURCE_FOOD_CAP, Value)
   endif
endif


You didn't do the changes on gold, lumber and food commands either and when I say changes I don't mean to delete, but just to adapt it to the map since it uses its own common & blizzard.j file.
/////////////////////////////

This is too much wrong:

Code: Select all

if Text == "-wc3edit" then


You don't need to put >> - <<. Just the activator name (wc3edit). This way:

Code: Select all

if Text == "wc3edit" then
petuh
Newcomer
Posts: 13
Joined: May 2nd, 2019, 2:58 pm

Re: help with rebuilding Zodiac rpg 3.13

Post by petuh »

I thought to make a change to change the activator —gold to-g. Now I'm confused
User avatar
nuzamacuxe
Also Not an Admin, but closer than devoltz
Posts: 1655
Joined: February 14th, 2018, 5:35 am
Title: Just Another S.Mod

Re: help with rebuilding Zodiac rpg 3.13

Post by nuzamacuxe »

Well, just cheat this one... you'll get this. Don't even need to remove anything, just insert my cheatpack. ;)

NOTE: No CD may crash since the map uses a custom spell casting, I don't recommend to use that command in game.
You do not have the required permissions to view the files attached to this post.