Infinity MUGEN Team

IMT Main => M.U.G.E.N Help => Topic started by: Saohc on March 11, 2010, 09:14:36 PM

Title: C++
Post by: Saohc on March 11, 2010, 09:14:36 PM
I'm trying to make a unlockable system for my full game, and I'm going to use a password system for this..

problem is, I don't really know a lot about C++

The type of program is Visual C++ 2008 Express Edition..

I know that type of file to have it as is, .cpp

Now I'm trying to make it where if the correct password is typed in(I'll use endings for finding out the passwords..), it goes into the select.def and places the character in..

The way I want it to work:

Open up program>type in password>if correct password>program goes into the select.def>changes(for example) "locked1" to "Spiderman">program is finished with it>exits>player opens up the full game and the character is there..

Could someone assist me with this?I'm trying to use this for my full game..
Title: Re: C++
Post by: Spidermew on March 11, 2010, 09:36:50 PM
I think to be able to edit mugen to put in some sort of password unlock system, you would need the source code.
And Elecbite never relesed the code.
Title: Re: C++
Post by: Saohc on March 11, 2010, 10:07:01 PM
No,I'm talking about Visual C++
Title: Re: C++
Post by: Spidermew on March 11, 2010, 10:13:08 PM
You cant edit mugen in that way to have a password system without being able to edit the source code. Souce code isnt a program, its the orginal code used to build the engen.

You dont have acess to the files you would need to edit to put in the system you want, is what i was trying to tell you.
Title: Re: C++
Post by: ATiC3 on March 11, 2010, 11:36:07 PM
There is no way to do this without the source code, as stated by Spidermew. The source code is something you cannot obtain, therefore you cannot do this.. you cannot set a password for your full game.

I'm not sure if this will help you, but I think there is a way to hide characters, and I think you can make it so that if you press certain keys in a certain order that they'll become available... Unfortunately I'm not 100% on that though.
Title: Re: C++
Post by: MirageAtoli on March 11, 2010, 11:52:32 PM
If the GUI does not matter you could write a simple batch program using SED etc.

You cant edit mugen in that way to have a password system without being able to edit the source code.

He wants to edit select.def which is a simple text file, it has nothing to do with mugen.
Title: Re: C++
Post by: ATiC3 on March 12, 2010, 10:38:56 AM
He's making a full MUGEN game for a project, so I would think it would have to do with MUGEN... I don't think there is a "press this and this and this to unlock this character" feature.
Title: Re: C++
Post by: R.I.C.O - Twon on March 12, 2010, 11:10:58 AM
He's making a full MUGEN game for a project, so I would think it would have to do with MUGEN... I don't think there is a "press this and this and this to unlock this character" feature.
Smh. That is not what he means.
Title: Re: C++
Post by: ATiC3 on March 12, 2010, 11:25:34 AM
Nevermind then... lol.. I don't know much about C++, but with the situation.. with what the requester wants, it sounds like he would have to edit MUGEN... not just the select.def...
Title: Re: C++
Post by: Saohc on March 30, 2010, 07:11:12 PM
If the GUI does not matter you could write a simple batch program using SED etc.

He wants to edit select.def which is a simple text file, it has nothing to do with mugen.

Download link for SED, I don't really need GUI, just simply having it where..

Player plays one of the characters>then sees the character's ending and sees a password>player takes the password>opens up the little "unlock" program made with SED>types in the password>program edits the select.def>character/stage is unlocked
Title: Re: C++
Post by: Bowasiel on March 30, 2010, 08:33:51 PM
Easy Solution...
1º Create a WinRar with password protected
2º Add the select.def with the characters unlocked to the file
3º Modify the ending and put the WinRar password
4º Make Hidden the characters and stages folders

Thats the easy solution...I was trying to make the program that u said in Java but...using this u dont need to code anything

PD: I wrote WinRar because is the most well-known and used...but u can use 7zip too (I use 7zip, is free)
Title: Re: C++
Post by: Saohc on March 31, 2010, 08:46:20 AM
I'll prefer the coding way, instead of the other way, with WinRAR..

What's the hard solution?
Title: Re: C++
Post by: Bowasiel on March 31, 2010, 09:52:08 AM
The hard solution is: Create a program for encrypting/decrypting...but this isnt gonna work because you need to change mugen's source code for making him able to read the encrypted/protected file

Ill tell u via PM
Title: Re: C++
Post by: Saohc on April 01, 2010, 04:02:31 PM
I sent you a PM.
Title: Re: C++
Post by: jurk on April 02, 2010, 07:11:36 AM
I've got an idea to place secret chars on mugen, and it works, but is difficult to explain here. It's about wrapping, showemptyboxes, moveoveremptyboxes and enormous roosters.

If anyone is interested, PM me
SimplePortal 2.3.5 © 2008-2012, SimplePortal