Need help on Terrania.

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Risugami
Senior Member
Posts: 134
Joined: September 25th, 2011, 1:15 pm
Title: Slacking

Need help on Terrania.

Post by Risugami »

Okay, I had problem activating -save on terrania. I did manage to enable the multiplayer mode (it's no biggie) but I failed to enable the -save function.
if(fB())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Multiple players detected. Save System will be |cff00FF00activated|r |cff00FFFFafter|r some time.")
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Only one player detected. Save System is |cffFF0000deactivated|r!")
endif
All I need to do was to find "function fB" (in red) and the function was:

Code: Select all

function fB takes nothing returns boolean
return(vv>1)
endfunction
So I know that the global variable "vv" is the number of players. So, the multiplayer mode will enable if there are ">/more than" 1 players. So I just changed 1 to 0

Code: Select all

function fB takes nothing returns boolean
return(vv>0)
endfunction
Now the multiplayer function is now enabled. But, it only allows you to save AFTER a certain amount of time, this is what I'm stuck ATM. I did manage to find the code, but I have no idea what to do with it. Here's the code:

Code: Select all

function UQ takes nothing returns nothing
set Vv=(Vv+1)
set qx=Qv
set Sx=0
set yx=10.
call CreateTimerDialogBJ(nv,"Next wave in:")
set Ev=bj_lastCreatedTimerDialog
call TimerDialogDisplay(Ev,true)
call StartTimerBJ(nv,false,180.)
if(tQ())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,1,"TRIGSTR_1585")
endif
if(uQ())then
if(TQ())then
set gv=true
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,1,"Save System is now |cff00FF00activated|r!")
endif
endif
endfunction
So that's the function, at first, I thought the global variable "gv" is the boolean for the -save function. So I went to the globals and look for boolean gv.

Code: Select all

boolean gv = false
I just set it to true and I can't still save. So I now know that gv ain't the variable needed to turn saving on. Correct me if I'm wrong though.

I need help from professionals that hacked this map before,

Regards~
Risugami
Image Image
(Made by: Risugami) | Risugami's Signature Workshop

"As a young boy, I was taught in high school that hacking was cool. - Kevin Mitnick"
Kyoshiro
Forum Staff
Posts: 762
Joined: October 27th, 2009, 12:18 pm
Location: Australia, GMT+8

Re: Need help on Terrania.

Post by Kyoshiro »

with maps like these you really really just need to enable single player then add a

Code: Select all

set gv=true
after you activate the cheats or add it to the initialization trigger
and

Code: Select all

function ic takes nothing returns boolean
return(Mv==false)and(vv>1)and(gv)
endfunction
needs to have it vv changed too though the function might have a different name cause im using 1.08 as an example
If you have any questions drop in by chat sometime, chances are there'll be someone who can help you that's afking there, so the next best thing is to click the link on UndeadxAssassin's Sig and ask your question there.
User avatar
Risugami
Senior Member
Posts: 134
Joined: September 25th, 2011, 1:15 pm
Title: Slacking

Re: Need help on Terrania.

Post by Risugami »

So I just add set gv=true in the map init? I think I did it before and the map crashes. I'll try it again

(EDIT) Oh so that's why, I missed to add "=" in the set gv=true code. My bad, I was right all along, but thanks for pointing out this:

Code: Select all

function ic takes nothing returns boolean
return(Mv==false)and(vv>1)and(gv)
endfunction
More respect to you sir, :)
Image Image
(Made by: Risugami) | Risugami's Signature Workshop

"As a young boy, I was taught in high school that hacking was cool. - Kevin Mitnick"
User avatar
Fukki
Old Wrinkly Member
Posts: 226
Joined: April 19th, 2010, 1:48 pm
Location: In The World

Re: Need help on Terrania.

Post by Fukki »

why you don't fix return true

Code: Select all

function ic takes nothing returns boolean
return true
endfunction
and ignore function fB because It is text and not disable trigger save load
Image
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: Need help on Terrania.

Post by naturesfury »

sometimes that can screw the map up....what if that function was used for more than checking single player o.o

anyway....function fB was used to trace the variable...
it tells you that multi player was enabled so if you check the conditions for it, you can trace back to the variable/function that enables/disables it

lastly, dont necro old, solved threads o.o