[Question:]Enabling Single Player

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
qweasd011
Forum Addict
Posts: 451
Joined: November 21st, 2008, 9:36 am
Title: Coleen!

[Question:]Enabling Single Player

Post by qweasd011 »

as you said search for single player of Jasscraft but there were 0 results i search for single there still no result somebody help me?
Image
User avatar
Risen
Forum Staff
Posts: 811
Joined: January 1st, 2008, 12:58 am

Re: [Question:]Enabling Single Player

Post by Risen »

Make sure there wasn't a space in singleplayer, more advanced antisingleplayers rely on PLAYER_SLOT_STATE_PLAYING, however, be careful, most of the time the game needs that to run a certain code..
Oh, Also, Try CustomDefeat.
Image
Wanna learn to hack maps? --> Guide
User avatar
qweasd011
Forum Addict
Posts: 451
Joined: November 21st, 2008, 9:36 am
Title: Coleen!

Re: [Question:]Enabling Single Player

Post by qweasd011 »

So ok still cannot get it :( but i found these lines i dunno how to edit them

there are 1 lines in PLAYER_SLOT_STATE_PLAYING?? is this correct?

Code: Select all

function O730524 takes nothing returns boolean
 if(not(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING))then
 return false
 endif
 return true
endfunction
now for CustomDefeat. There are several Costom Defeats i will post them here

1

Code: Select all

function O1447946 takes nothing returns nothing
 call CustomDefeatBJ(Player(0),"TRIGSTR_031")
 call CustomDefeatBJ(Player(1),"TRIGSTR_032")
 call CustomDefeatBJ(Player(2),"TRIGSTR_033")
 call CustomDefeatBJ(Player(3),"TRIGSTR_034")
 call CustomDefeatBJ(Player(4),"TRIGSTR_035")
 call CustomDefeatBJ(Player(5),"TRIGSTR_036")
 call CustomDefeatBJ(Player(6),"TRIGSTR_037")
 call CustomDefeatBJ(Player(7),"TRIGSTR_038")
endfunction
2.

Code: Select all

function O1520459 takes nothing returns nothing
 set bj_forLoopAIndex=1
 set bj_forLoopAIndexEnd=8
 loop
 exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
 if(O1517690())then
 call CustomDefeatBJ(ConvertedPlayer(GetForLoopIndexA()),"TRIGSTR_596")
 call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetPlayerName(ConvertedPlayer(GetForLoopIndexA()))+" Already leave this game"))
 call PlaySoundBJ(O548947)
 call LeaderboardSetPlayerItemLabelBJ(ConvertedPlayer(GetForLoopIndexA()),GetLastCreatedLeaderboard(),"TRIGSTR_597")
 call ForGroupBJ(GetUnitsOfPlayerAll(ConvertedPlayer(GetForLoopIndexA())),function O1514078)
 else
 call DoNothing()
 endif
 set bj_forLoopAIndex=bj_forLoopAIndex+1
 endloop
endfunction
I think there's one there

i think the correct one is number 2. my prediction but
how to edit that?
Image
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: [Question:]Enabling Single Player

Post by Senethior459 »

Another good way to find singleplayer is to open the war3map.wts, and search for singleplayer. If any strings have it, look at their number, and then find those strings being called in the war3map.j. So, if string 50 says "Sorry, you can't save in singleplayer", then open the war3map.j and search for "TRIGSTR_50", because anything that uses it will obviously be associated with the anti-singleplayer triggers,

Your first result is returning true if that slot has a player in it, and false if not (well, really the other way around). So, copy the function name and search for it; see what functions are calling it. They may be anti-singleplayer triggers (a lot of other triggers use this, too!). JassCraft's search box doesn't let you paste with Ctrl+V, but you can right-click and choose Paste, and it will gladly paste it in.
The second result may be promising; open the war3map.wts and find those strings, strings 31-38. If they say something about singleplayer, then you found the trigger. If they say something like "Kicked!" or "You lose!", then it probably isn't it. I'm not sure if it is or it isn't, though, without seeing those strings. It seems like it might not, because it's kicking 8 players, but it could be, because if there's only one player, it would still be easier to just kick everyone than to detect which slot they are and then kick that player.
The third result, I'm almost certain is a kick trigger, because it's kicking a player, based on trigger O1517690 (you may want to see what that does, but it's probably checking for someone to say "-kick 00" or something similar), and then telling everyone still playing that the kicked player has left. If it were an anti-singleplayer, they wouldn't have it display a message to other players after it kicks them, because there would be no other players.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
Risen
Forum Staff
Posts: 811
Joined: January 1st, 2008, 12:58 am

Re: [Question:]Enabling Single Player

Post by Risen »

Try uploading / giving the maps link here and me / sene can help you spot it.
Image
Wanna learn to hack maps? --> Guide
User avatar
qweasd011
Forum Addict
Posts: 451
Joined: November 21st, 2008, 9:36 am
Title: Coleen!

Re: [Question:]Enabling Single Player

Post by qweasd011 »

so what program i will use to open war3map.wts? :?: i tried opend it on notepad it works! :razz: but when i search for single player 0 results? besides single player what can i search for?

i will upload here
the name is X Hero Siege 1.55.w3x
You do not have the required permissions to view the files attached to this post.
Image
User avatar
Bl00D R3av3r
Senior Member
Posts: 165
Joined: January 25th, 2008, 5:20 pm
Title: Lazy

Re: [Question:]Enabling Single Player

Post by Bl00D R3av3r »

i played the map and i haven't found something that prevents me from playing it in singleplayer
Image
Sig by TheWand
User avatar
qweasd011
Forum Addict
Posts: 451
Joined: November 21st, 2008, 9:36 am
Title: Coleen!

Re: [Question:]Enabling Single Player

Post by qweasd011 »

So rizen and senethior have any ideas?? you can check it just download it on my last post
so anyone can help me??? thx
Image
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: [Question:]Enabling Single Player

Post by Lanaya »

Bl00D R3av3r wrote:i played the map and i haven't found something that prevents me from playing it in singleplayer
are you sure theres single player? -.-
if so, what happens when u play single player?
Image
League of legends North America - Nietono
User avatar
qweasd011
Forum Addict
Posts: 451
Joined: November 21st, 2008, 9:36 am
Title: Coleen!

Re: [Question:]Enabling Single Player

Post by qweasd011 »

Could somebody help me?, so is there a single player for this game??. its impossible that there's no way to enable single player for this game because all games have single player?? so any ideas?, so could somebody help me??, where it is located??, i search singleplayer 0 result i search CustomDefeat 2 results i search from PLAYER_SLOT_STATE_PLAYING 1 result (---kick trigger or QUIT TRIGGER) , extract war3map.wts and opened it in nopepad (don't have the programm [i don't know if theres a programm for opening war3map.wts i think] ) i search in war3map.wts is single player 0 result , single 0 result, and PLAUER_SLOT_STATE_PLAYER still 0 result??. somebody help me?? for just i time?????? just download the game/X Herosiege 1.55 on my link my previous post! ( im not sure if its 1.55 but anyways) just tell me how to enable that thing??? so somebody HELP ME!! (THX FOR READING)... srry for my bad english im not from america im from philipines :razz: so any one help me? :(
Image