wc3edit.net

United Warcraft 3 map hacking!
It is currently April 20th, 2024, 12:06 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: [SP]Question(s)
PostPosted: June 15th, 2016, 6:55 pm 
Offline
Newcomer

Joined: December 9th, 2013, 6:55 am
Posts: 23
First and foremost, forgive me if I'm posting in the wrong section, its my first post :/

Off to business,

So far I've seen a few guides on this forum and have been enabling SP on maps on my own but I've came across this map where the methods absolutely don't work, although the map is already SP enabled on this forum somewhere, I'm still curious how its done since the methods from the guide http://forum.wc3edit.net/deprotection-cheating-f64/how-to-enable-single-player-by-jj2197-t5725.html don't work :/. What happened when i start the map is different from the usual defeat message, unable to select heroes/save/load etc. In this particular map, the game pauses immediately, when i press F10 and resume, nothing happens, i can't click on minimap etc. The map in question is night of mist rpg

Map file :

Any form of explanation/help is appreciated especially a guide :) Also, this is just me being really, really curious.


Top
 Profile  
 
 Post subject: Re: [SP]Question(s)
PostPosted: June 16th, 2016, 5:23 am 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
You could compare the war3map.j file to find the differences. (Or post the edited map so we can see what happened)
As for my method of bypassing anti-sp. I don't usually look for WHAT HAPPENS on single-player. I look for WHAT DETECTS single player, as it narrows my searches. Usually there is a condition.
"if GetPlayerSlotState"
And that condition will check for how many playing humans are on the map. So just make sure that at the end of that statement it will return a true value (or false, depends on what the map is looking for) and you are good to go!

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
 Post subject: Re: [SP]Question(s)
PostPosted: June 16th, 2016, 6:57 am 
Offline
Newcomer

Joined: December 9th, 2013, 6:55 am
Posts: 23
I tried to compare, but it doesn't seem to work, what I did myself was to convert "yc" value if its singleplayer to 0, which is what the edited map has but its not working at all, moreover I've tried replacing the edited map's .j file and deleting attributes because it has CP, I still get the pause thing, so I think.. there's something more :/

Here's the edited one :
Spoiler:
https://www.epicwar.com/maps/262654/


edited .j code :
Spoiler:
set Wc=0
loop
exitwhen Wc==16
set bj_FORCE_PLAYER[Wc]=CreateForce()
call ForceAddPlayer(bj_FORCE_PLAYER[Wc],Player(Wc))
set Wc=Wc+1
endloop
set bj_FORCE_ALL_PLAYERS=CreateForce()
call ForceEnumPlayers(bj_FORCE_ALL_PLAYERS,null)
set bj_cineModePriorSpeed=GetGameSpeed()
set bj_cineModePriorFogSetting=IsFogEnabled()
set bj_cineModePriorMaskSetting=IsFogMaskEnabled()
set Wc=0
loop
exitwhen Wc>=bj_MAX_QUEUED_TRIGGERS
set bj_queuedExecTriggers[Wc]=null
set bj_queuedExecUseConds[Wc]=false
set Wc=Wc+1
endloop
set bj_isSinglePlayer=true
set yc=0
set Wc=0
loop
exitwhen Wc>=$C
if(GetPlayerController(Player(Wc))==MAP_CONTROL_USER and GetPlayerSlotState(Player(Wc))==PLAYER_SLOT_STATE_PLAYING)then
set yc=yc+1
endif
set Wc=Wc+1
endloop
set bj_isSinglePlayer=(yc==0)


unedited .j code
Spoiler:
set Wc=0
loop
exitwhen Wc==16
set bj_FORCE_PLAYER[Wc]=CreateForce()
call ForceAddPlayer(bj_FORCE_PLAYER[Wc],Player(Wc))
set Wc=Wc+1
endloop
set bj_FORCE_ALL_PLAYERS=CreateForce()
call ForceEnumPlayers(bj_FORCE_ALL_PLAYERS,null)
set bj_cineModePriorSpeed=GetGameSpeed()
set bj_cineModePriorFogSetting=IsFogEnabled()
set bj_cineModePriorMaskSetting=IsFogMaskEnabled()
set Wc=0
loop
exitwhen Wc>=bj_MAX_QUEUED_TRIGGERS
set bj_queuedExecTriggers[Wc]=null
set bj_queuedExecUseConds[Wc]=false
set Wc=Wc+1
endloop
set bj_isSinglePlayer=false
set yc=0
set Wc=0
loop
exitwhen Wc>=12
if(GetPlayerController(Player(Wc))==MAP_CONTROL_USER and GetPlayerSlotState(Player(Wc))==PLAYER_SLOT_STATE_PLAYING)then
set yc=yc+1
endif
set Wc=Wc+1
endloop
set bj_isSinglePlayer=(yc==1)


Both the maps are provided, if you wanna read the whole thing its on the OP and this post for both the maps.

edit : I'm pretty sure I did the part right where changing value of yc to 0, but i don't get the "exit when Wc>=12" to "exit when Wc>$C"


Top
 Profile  
 
 Post subject: Re: [SP]Question(s)
PostPosted: June 16th, 2016, 8:36 am 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
quick question. Where did you place the EDITED war3map.j file?
The map contains 2 files. In the main header and in the scripts folder.
In this case the file in the main header (not in the scripts folder) will be the one used, so if you replace the one in the scripts folder, well you didn't change anything.

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
 Post subject: Re: [SP]Question(s)
PostPosted: June 16th, 2016, 8:46 am 
Offline
Newcomer

Joined: December 9th, 2013, 6:55 am
Posts: 23
I replaced it in scripts, I thought every map only has one war3map.j file?Hmm...weird.. there's actually two of it... can you explain a little more about it?like why are there 2, which one will be used etc.

edit: wait a minute...I just took a peek in the unedited map and checked the .j file on the main folder... its not so unedited afterall, there's a CP added by someone, guess that person replaced the .j file wrongly? which explains why there is 2 .j file instead of one? That's my guess, because so far I haven't seen two .j files in a map actually...


Top
 Profile  
 
 Post subject: Re: [SP]Question(s)
PostPosted: June 16th, 2016, 11:57 am 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
juxtapose123 wrote:
can you explain a little more about it?like why are there 2, .


I explained in the post above. If you have 2 files, the one in the MAIN archive would be the one used, the file inside the scripts folder is just dead weight.

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
 Post subject: Re: [SP]Question(s)
PostPosted: June 16th, 2016, 5:49 pm 
Offline
Newcomer

Joined: December 9th, 2013, 6:55 am
Posts: 23
Welp, I've deleted the .j file on scripts, edited the .j file on the main folder on the unedited map, and it worked as normal, guess my problem was not realizing there's 2 .j file, thanks a bunch!


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 25 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:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)