Chaos Project

General => Electronic and Computer Section => Topic started by: Fantasist on October 17, 2008, 05:34:26 am

Title: RM Launch XP
Post by: Fantasist on October 17, 2008, 05:34:26 am
Some or most of you must've used the Resources Converter with Project Launcher made by Bodom-Child. Here's a screenshot:
(http://img518.imageshack.us/img518/4201/rlscrtx5.th.jpg) (http://img518.imageshack.us/my.php?image=rlscrtx5.jpg)(http://img518.imageshack.us/images/thpix.gif) (http://g.imageshack.us/thpix.php)

I managed to make a similar one of my own. I present to you, the RM Launch XP, a quick launch tool for RMXP. Here's a screenshot:

(http://img264.imageshack.us/img264/5940/rmlaunchxps1so1.jpg)

The only set back with is that you need to have .NET Framework (http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en) to run this tool. If you know a way I can make it truly stand-alone, please let me know.

DOWNLOAD (http://files.filefront.com/RM+Launch+XP/;12110708;/fileinfo.html)
Title: Re: Trying to make an RMXP Launcher in Visual Studio
Post by: Blizzard on October 17, 2008, 06:02:50 am
You'd need to access the registry and check out the installation path of RMXP I guess.
Title: Re: Trying to make an RMXP Launcher in Visual Studio
Post by: fugibo on October 17, 2008, 07:27:39 am
I'm sorry, but... please, no Visual Studio. There's a healthy 15% of the world that doesn't get to "benefit" from that toolkit, so...
Title: Re: Trying to make an RMXP Launcher in Visual Studio
Post by: Fantasist on October 20, 2008, 02:27:13 am
Yeah, everything is so different it's annoying.And there are so many versions, I don't even know what to search for in gogle :/ So can you suggest any other... engine where I can make Win apps? Cause I might as well switch now. Or I could also use C# in visual studio... Guide me almighty scripters!
Title: Re: Trying to make an RMXP Launcher in Visual Studio
Post by: Blizzard on October 20, 2008, 05:23:52 am
I think VS2008 is quite ok, but that's me. o.o
Title: Re: Trying to make an RMXP Launcher in Visual Studio
Post by: Fantasist on October 20, 2008, 05:46:27 am
I'm using VS 2005. And I chose to use Visual Basic when it asked me after the install. Anyway, I figured out everything I need, I'll come up with an experimental version soon. I'll take people's ideas and I'll try to implement them before releasing the first proper version.

Speaking of which, what will the client need to run an app made in VS 2005? Anything other than .NET?
Title: Re: Trying to make an RMXP Launcher in Visual Studio
Post by: Blizzard on October 20, 2008, 05:55:07 am
Except for the .NET Framework nothing else is needed as far as I know.
Title: Re: Trying to make an RMXP Launcher in Visual Studio
Post by: Fantasist on October 20, 2008, 06:01:25 am
Cool. We'll find out today anyway :D

EDIT: Released v0.1 :D

Comments, suggestions, positive criticism and the like are welcome.
If anyone knows how to make it independent from .NET (or even packaging the required .NET stuff in the exe), please let me know.
Title: Re: RM Launch XP
Post by: Blizzard on October 20, 2008, 12:34:29 pm
Hm... I'm not sure, but I think that you can use C++ native in VC++ and then you don't need .NET. I could be wrong though, I haven't tested a VC++ native program on another machine.
Title: Re: RM Launch XP
Post by: Fantasist on October 20, 2008, 12:44:14 pm
I don't know what native C++ is ._. But aren't there tools to package the required .NET commands for the program into one unified exe?
Title: Re: RM Launch XP
Post by: Blizzard on October 20, 2008, 12:58:58 pm
"Native" is a VC++ option that should allow you to create a C++ application that doesn't need .NET to work. Of course you can't use the enhanced functionalities of .NET then. And those tools do more harm than good. Usually your application takes half of the framework with it making it kinda pointless. -_- Better the user installed .NET then.
Title: Re: RM Launch XP
Post by: Fantasist on October 20, 2008, 01:21:31 pm
QuoteBetter the user installed .NET then.

I guess so. More over .NET is becoming common these days.

And btw, the download is 42~43kb (was 13kb when I zipped it but meh).
Title: Re: RM Launch XP
Post by: legacyblade on October 20, 2008, 03:01:04 pm
I suggest the ability to set the project folder. You could store the data in an INI file, or something. I don't use the default project location, but a quick launcher like this would speed up my work flow by about 2 mins an hour!
Title: Re: RM Launch XP
Post by: Fantasist on October 20, 2008, 04:06:05 pm
Yes, why didn't I think of it? I use a different location too and I do that everytime I install RMXP, so I guess I forgot. Thanks lb, I'll add it.

...wait, do you just use a different folder or did you mess up with the registry? Because if it's the registry, this will work. This app gets the location from the registry. The location rmxp stores the project path is:
HKEY_CURRENT_USER//Software//Enterbrain//RPGXP//BaseLocation

I'll add the option to change the location in the registry. That way, any new projects are made in that location.
Title: Re: RM Launch XP
Post by: legacyblade on October 20, 2008, 04:58:24 pm
Oooh, that'd be a cool addition. I was just saying I save my projects in a different folder (on my external hard drive that's always plugged in). I think the changing of the default RMXP project directory would be AWESOME. BTW, a feature I think would be useful (at least for me), would be a button in the launcher that opens the folder containing the RMXP RTP. Not sure how useful that'd be for everyone else, but I snoop through those files a lot, so it'd save me some time. Either way, this is a nice little application that speeds up the work flow a bit. Great job, can't wait to see future versions.
Title: Re: RM Launch XP
Post by: Blizzard on October 20, 2008, 05:05:26 pm
Did I send you the entire RMXP registry adding file?
Title: Re: RM Launch XP
Post by: Fantasist on October 21, 2008, 08:34:42 am
Quotewould be a button in the launcher that opens the folder containing the RMXP RTP.

lol, if you'd seen my very first mockup, you'll see that button :D I removed it b/c I wanted to make a properly functioning app. I wanted buttons for:
- RMXP Folder
- Projects Folder
- RTP Folder
- When you run/open a game, the folder of that project (which I implemented).
I'll try to get to it soon, but my exams start 2 days from now, so I can't guarantee a quick update.

QuoteDid I send you the entire RMXP registry adding file?

No you didn't. I'm thinking it includes projects location and RTP location.
Title: Re: RM Launch XP
Post by: legacyblade on October 21, 2008, 02:24:09 pm
Well I'll look forward to it. The open RTP folder will save me lots of time ^_^
Title: Re: RM Launch XP
Post by: Blizzard on October 21, 2008, 03:40:52 pm
Here you go:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Enterbrain]

[HKEY_CURRENT_USER\Software\Enterbrain\RGSS]
"SmoothMode"=dword:00000001
"WaitForVsync"=dword:00000001
"ButtonAssign"=hex:0b,0c,0d,0e,0f,10,11,12,00,00,0d,0d,0c,0c,0b,0b,0c,0d,00,00,\
  0e,0f,10,11,12
"PlayMusic"=dword:00000001
"PlaySound"=dword:00000001

[HKEY_CURRENT_USER\Software\Enterbrain\RPGXP]
"ViewMode"=dword:00000001
"BlindMode"=dword:00000001
"EditMode"=dword:00000003
"DrawingTool"=dword:00000004
"ScaleType"=dword:00000000
"DatabaseIndex"=dword:0000000b
"FindWhat"=""
"ReplaceWith"=""
"MatchCase"=dword:00000000
"MatchWholeWord"=dword:00000001
"BaseLocation"="D:\\RPG Maker XP\\Projects\\"
"TransparentType"=dword:00000000
"TransparentColor"=dword:00f0e0d0
"ImportColor1"=dword:00000000
"ImportColor2"=dword:00000000
"GridEnabled"=dword:00000000
"GridHorizonal"=dword:00000008
"GridVertical"=dword:00000008
"WindowPos"="2,3,-1,-1,-1,-1,2,0,1024,731"

[HKEY_LOCAL_MACHINE\SOFTWARE\Enterbrain]

[HKEY_LOCAL_MACHINE\SOFTWARE\Enterbrain\RGSS]

[HKEY_LOCAL_MACHINE\SOFTWARE\Enterbrain\RGSS\RTP]
"Standard"="C:\\Program Files\\Common Files\\Enterbrain\\RGSS\\Standard\\"

[HKEY_CLASSES_ROOT\RTP.RTP.1]
@="RTP Class"

[HKEY_CLASSES_ROOT\RTP.RTP.1\CLSID]
@="{06CE0C3A-8917-11D1-AA78-00C04FC9B202}"

[HKEY_CLASSES_ROOT\RTP.RTP]
@="RTP Class"

[HKEY_CLASSES_ROOT\RTP.RTP\CurVer]
@="RTP.RTP.1"

[HKEY_CLASSES_ROOT\RPGXP.Data]
@="RPGXP Data"

[HKEY_CLASSES_ROOT\RPGXP.Data\DefaultIcon]
@="D:\\RPG Maker XP\\RPGXP.exe,2"

[HKEY_CLASSES_ROOT\RPGXP.Data\shell]

[HKEY_CLASSES_ROOT\RPGXP.Data\shell\open]

[HKEY_CLASSES_ROOT\RPGXP.Data\shell\open\command]
@="D:\\RPG Maker XP\\RPGXP.exe \"%1\""

[HKEY_CLASSES_ROOT\RPGXP.Project]
@="RPGXP Project"

[HKEY_CLASSES_ROOT\RPGXP.Project\DefaultIcon]
@="D:\\RPG Maker XP\\RPGXP.exe,1"

[HKEY_CLASSES_ROOT\RPGXP.Project\shell]

[HKEY_CLASSES_ROOT\RPGXP.Project\shell\open]

[HKEY_CLASSES_ROOT\RPGXP.Project\shell\open\command]
@="D:\\RPG Maker XP\\RPGXP.exe \"%1\""


Put it in a .reg file and run it.
Title: Re: RM Launch XP
Post by: Fantasist on October 22, 2008, 06:25:10 am
Wow, now THAT was more complete. Thanks :D
Title: Re: RM Launch XP
Post by: Blizzard on October 22, 2008, 07:45:41 am
Don't ask why I have that.

... Alright, alright, I admit that I was trying to make hack for the legal version where you don't have to validate RMXP over the nTitles server for Hybrid Edition. <_<;
Title: Re: RM Launch XP
Post by: Fantasist on October 23, 2008, 03:54:08 am
If that code has everything including setting the right file extensions and icons,I wouldn't care less. I mean seripusly, is that everything you need to properly register RMXP? Like, you just copy the RMXP folder and the RTP folder without installing either of them, set the paths right in the above code and run it, will it take care of everything?
Title: Re: RM Launch XP
Post by: Blizzard on October 23, 2008, 10:41:27 am
Yes, this is all you need. But something must be missing since I can't get around the activation code in RMXP. =/ That's probably somewhere deep in the system, though, and I don't think that you will need it for your app.
Title: Re: RM Launch XP
Post by: Fantasist on October 23, 2008, 01:25:22 pm
Woah! That makes things a LOT better. Now I can incorporate a "Registry Fixer" for RMXP :D

Plans for next version:
-------------------------------------------------------------------
- Recently Opened Projects: More recent projects are listed first
-------------------------------------------------------------------
- Open RMXP Folder
- Open Projects Folder
- Open RTP Folder
-------------------------------------------------------------------
- Set RMXP Folder
- Set Projects Folder
- Set RTP Folder
-------------------------------------------------------------------
- Fix Registry: Fixes the extensions and icons if there's a problem
-------------------------------------------------------------------

I should remember the true purpose of the program and try to make the layout as simple as possible. I also have a bad feeling about memory leaks in the app, I'll have to check that too.