Auto Insert

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Penguin
Member
Posts: 55
Joined: May 22nd, 2007, 1:12 am

Auto Insert

Post by Penguin »

Hi all!

I've been thinking about making a program that could automatically insert a cheatpack into a jass file.
It'd be like a search and replace, but quicker, and you wouldn't see the file get opened.
Here's what it'd do:

1. Under one form, it asks you to paste in what you'd put under globals
2. You click next, and it asks you to paste in what you'd put under endglobals
3. You click next, and it asks you to paste in what you'd put under function main
4. It inserts the codes, and saves the .j file. Then all you'd have to do is replace it!

The way it'd work is by calling the search and replace function, but replacing

Code: Select all

globals
with

Code: Select all

globals\nCODE
And the same with endglobals, and function main. The only problem is that since it's not by hand, it couldn't do a Jass syntax check. However, I was thinking of it calling on the JASS syntax check function somehow, and returning the results in a MessageBox().

I'm still new to coding, but I'm determined to learn enough C++ to get this done. Post what you think of this. Also I can only work on this on the weekends, due to school. :(
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4445
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Auto Insert

Post by Bartimaeus »

Penguin wrote:Hi all!

I've been thinking about making a program that could automatically insert a cheatpack into a jass file.
It'd be like a search and replace, but quicker, and you wouldn't see the file get opened.
Here's what it'd do:

1. Under one form, it asks you to paste in what you'd put under globals
2. You click next, and it asks you to paste in what you'd put under endglobals
3. You click next, and it asks you to paste in what you'd put under function main
4. It inserts the codes, and saves the .j file. Then all you'd have to do is replace it!

The way it'd work is by calling the search and replace function, but replacing

Code: Select all

globals
with

Code: Select all

globals\nCODE
And the same with endglobals, and function main. The only problem is that since it's not by hand, it couldn't do a Jass syntax check. However, I was thinking of it calling on the JASS syntax check function somehow, and returning the results in a MessageBox().

I'm still new to coding, but I'm determined to learn enough C++ to get this done. Post what you think of this. Also I can only work on this on the weekends, due to school. :(
I don't think this is wise. We'd never be able to play a non-cheated map in b.net again...=/ But I'm sure other people would approve...
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Auto Insert

Post by Xantan »

we've already thought of it.

we need it.

if you can do it, we need it done.


if you cant, we don't really need you on it, because we know we'll get it, eventually.

I've already talked to some major warcraft III people and I think we can get it, with or without your help.
Dekar
Forum Drunk
Posts: 2918
Joined: January 17th, 2007, 4:22 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Auto Insert

Post by Dekar »

should be really easy!
but i would prefer the mpq lib of the guy who made mpqmaster (he disappeared?)
over ShadowFlares... so if anyone could provide me with a documentation/header files...
ShadowFlares has some bugs with protected mpqs... as you may encounter while using vex-optimizer.
and its slower... a lot!
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
]SouL][ReapeR[
Forum Staff
Posts: 252
Joined: July 20th, 2007, 10:25 pm

Re: Auto Insert

Post by ]SouL][ReapeR[ »

I could probably script it if it's just when you open JASS craft, sure.

Edit: Managed to actually finish with it. It's more... 50% tutorial and 50% automatic.
Image