wc3edit.net

United Warcraft 3 map hacking!
It is currently March 29th, 2024, 6:56 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Auto Insert
PostPosted: January 3rd, 2008, 2:37 am 
Offline
Member

Joined: May 22nd, 2007, 1:12 am
Posts: 55
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:
globals


with

Code:
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. :(


Top
 Profile  
 
 Post subject: Re: Auto Insert
PostPosted: January 3rd, 2008, 2:41 am 
Offline
Tyrannical Drama Queen
User avatar

Joined: November 19th, 2007, 5:05 am
Posts: 5014
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:
globals


with

Code:
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...


Top
 Profile  
 
 Post subject: Re: Auto Insert
PostPosted: January 3rd, 2008, 4:02 am 
Offline
Honorary wc3edit.net Traitor
User avatar

Joined: February 1st, 2007, 4:11 pm
Posts: 2513
Location: NEVADA
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.


Top
 Profile  
 
 Post subject: Re: Auto Insert
PostPosted: January 4th, 2008, 8:09 am 
Offline
Forum Drunk
User avatar

Joined: January 17th, 2007, 4:22 pm
Posts: 2903
Location: Darmstadt, Germany
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


Top
 Profile  
 
 Post subject: Re: Auto Insert
PostPosted: January 4th, 2008, 5:12 pm 
Offline
Forum Staff
User avatar

Joined: July 20th, 2007, 10:25 pm
Posts: 255
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


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 32 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)