JASS In-Game Output to Text File or Similar

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

uniflare
Newcomer
Posts: 3
Joined: June 29th, 2008, 10:36 pm

JASS In-Game Output to Text File or Similar

Post by uniflare »

Ok, Basically i need the random table sets used in warcraft 3 (using setrandomseed).
I have a function (very simple) that "displaytexttoforce" the numbers i need.

Only problem is this is a long and grueling task (i need over thousand sets) - as i need to copy the number to multiple screenshots, then copy them via notepad.

Is there a pattern to each random set? (i only need the first digit of each table that is between 0-100).

ie.

Code: Select all

SetRandomSeed(0)
print_to_file_or_User(GetRandomInt(0,100))
SetRandomSeed(1)
print_to_file_or_User(GetRandomInt(0,100))
SetRandomSeed(2)
... etc
i know this jass aint jass it would not work without I2S() etc, but this is the general theory of what i want.
i cannot just print into a game because i need thousands of sets. im not going to alt+tab 1000 times :P.
--

So, 2 Questions;
1. Is there a mathematical algortithm for these random sets (can u tell me what it is?), OR are they predefined? (can i find them?) - im guessing the former.

2. Is there a way i can copy in game chat, OR Write to a text file using JASS, or similar?


Optional Question-
is this JASS the same as Java JASS? Tehre must be a write to file function somewhere?
(NOTE: This is for single player, I'm doing this so i can use the Random Table Sets Externally and have Reference to them)

---

Thank you in advance for any help - i appreciate it really ;).
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: JASS In-Game Output to Text File or Similar

Post by Ozzapoo »

uniflare wrote:Ok, Basically i need the random table sets used in warcraft 3 (using setrandomseed).
I have a function (very simple) that "displaytexttoforce" the numbers i need.

Only problem is this is a long and grueling task (i need over thousand sets) - as i need to copy the number to multiple screenshots, then copy them via notepad.

Is there a pattern to each random set? (i only need the first digit of each table that is between 0-100).

ie.

Code: Select all

SetRandomSeed(0)
print_to_file_or_User(GetRandomInt(0,100))
SetRandomSeed(1)
print_to_file_or_User(GetRandomInt(0,100))
SetRandomSeed(2)
... etc
i know this jass aint jass it would not work without I2S() etc, but this is the general theory of what i want.
i cannot just print into a game because i need thousands of sets. im not going to alt+tab 1000 times :P.
--

So, 2 Questions;
1. Is there a mathematical algortithm for these random sets (can u tell me what it is?), OR are they predefined? (can i find them?) - im guessing the former.

2. Is there a way i can copy in game chat, OR Write to a text file using JASS, or similar?


Optional Question-
is this JASS the same as Java JASS? Tehre must be a write to file function somewhere?
(NOTE: This is for single player, I'm doing this so i can use the Random Table Sets Externally and have Reference to them)

---

Thank you in advance for any help - i appreciate it really ;).
Jass isn't like java... No function to write files..
And no, you can't copy it unless you manage to make a ridiculous manipulation of the ForceKey function
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
uniflare
Newcomer
Posts: 3
Joined: June 29th, 2008, 10:36 pm

Re: JASS In-Game Output to Text File or Similar

Post by uniflare »

thanks for the speedy reply.

ok 4 more questions lol.

1. What would be the easiest way to get the random integers?
2. is there a way to emulate the random tables, ie in vb/c++/php etc?
3. what is the Forcekey function?
4. Is the random tables fixed or set using an algorithm? i guess its an algorithm....
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: JASS In-Game Output to Text File or Similar

Post by Ozzapoo »

uniflare wrote:thanks for the speedy reply.

ok 4 more questions lol.

1. What would be the easiest way to get the random integers?
2. is there a way to emulate the random tables, ie in vb/c++/php etc?
3. what is the Forcekey function?
4. Is the random tables fixed or set using an algorithm? i guess its an algorithm....
1. If you're going to be generating thousands of numbers, all ways are hard..
2. Jass isn't nearly as complicated as those languages.... and no
3. I forgot what the actual function was, but if you do:

Code: Select all

if GetLocalPlayer()==p then
call ForceUIKey("h")
it would press 'h' for player 'p'.
4. Don't know, don't care, don't need to know
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
uniflare
Newcomer
Posts: 3
Joined: June 29th, 2008, 10:36 pm

Re: JASS In-Game Output to Text File or Similar

Post by uniflare »

ok thanks for q1-3.
Dekar
Forum Drunk
Posts: 2914
Joined: January 17th, 2007, 4:22 pm
Has thanked: 1 time
Been thanked: 1 time

Re: JASS In-Game Output to Text File or Similar

Post by Dekar »

I think the random seed is defined by camera/unit movements/pressed keys or by a collective pool generated from
partitial pools generated by all the clients. So I don't think you can hack it. -.-
Don't pm me with Warcraft questions, this is a forum so just make a post!
In the world of thinking we are all immigrants. -Robert Nozick
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: JASS In-Game Output to Text File or Similar

Post by Ozzapoo »

You can easily hack it.....except it will cause desyncs and possibly crashes :lol:
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!