HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

cheat prevention

10-20-2004, 04:54 AM#1
Linera
does anyone have a jass script to prevent someone from using cheat codes offline?
10-20-2004, 04:56 AM#2
HexenLordX
Quote:
Originally Posted by Linera
does anyone have a jass script to prevent someone from using cheat codes offline?

Well, the old method was to import a blanks cheats.j into the map under the path scripts/cheats.j

From what I hear though, this doesn't work anymore. JASS MIGHT be a solution, but I don't think that the World Editor will recognize strings containing the cheats in them. For some reason it just ignored them entirely.
10-20-2004, 03:01 PM#3
Vexorian
There is no way at the moment. You can use some triggers to detect most of the cheats, but whosyourdaddy is surelly not gonna be possible
10-20-2004, 05:45 PM#4
-={tWiStÄr}=-
there is a way to detect if theyre playing on single player tho. i think you store a value in a game cache onto the hardrive then try to recover it. since you cant save gamecaches to the hardrive if the value is null that means the cache wasnt saved, but if it has a value that means it was saved. so if it was saved that means you get to give them defeat.
10-20-2004, 06:14 PM#5
weaaddar
You can detect if the game is played in single player mode, instead of a single lan. If its single player mode you can force them to quit.

basically you do this

function isSinglePlayer takes nothing returns boolean
call StoreInteger(InitGameCache("test.w3v"),"temp","temp",7)
call SaveGameCache(InitGameCache("test.w3v"))
endfunction

somewhere in your code
---
custom script: if ( isSinglePlayer() ) then
Game Display Text You must play this map as a lan
Game Defeat Player 1