Metamorphman



Name: Aidin Bahadornejad
Age: 15
Location: Tehran, Iran
Joined: December 5th, 2005

DM, C++, PHP, Python, JavaScript, HTML and CSS programmer.

aidinbahador@gmail.com


Blog Comments

Login to post a comment.

#7 Metamorphman:  

Stephie wrote:
> HI META! I am on your page stealing your cookies!!

D:

Wednesday, September 30, 2009 09:08AM

#6 Stephie:  

HI META! I am on your page stealing your cookies!!

Wednesday, September 30, 2009 09:04AM

#5 Pmitch:  

Hey Meta, IM me on MSN asap please.

Pmitch2@hotmail.com

Sunday, September 20, 2009 05:33PM

#4 Yash 69:  

Metamorphman wrote:
> Too bad. I drank it all. :P

omg i wanted a drop atleast

Wednesday, July 29, 2009 12:14PM

#3 Metamorphman:  

Too bad. I drank it all. :P

Tuesday, July 28, 2009 10:00PM

#2 Yash 69:  

Metamorphman wrote:
> Yo ho ho and a bottle of rum

Can't wait to open it for some Fun!

Tuesday, July 28, 2009 09:59PM

#1 Metamorphman:  

Yo ho ho and a bottle of rum

Thursday, July 23, 2009 12:55PM

 

 

dmb2exe

Following my previous post, I decided to make a little program to automate the whole process mentioned in said post. The result can be found here. I released it as code so that suspicious developers can check to make sure the commands I'm running using shell() aren't going to format their C Drive.

Enjoy!

Posted by Metamorphman on Friday, September 04, 2009 10:56AM - 16 comments / Members say: yea +3, nay -1

« A ( Truly )Standalone BYOND Project · I Hate Mosquitos »

Login to post a comment.

#16 Zaole:  

i ran it through the dmb, and it appeared to get farther in the process, but then i still got the same error :3

when i first ran this program, byond suddenly switched to safe mode instead of trusted, and i haven't been able to get it to switch back (even when i choose trusted, it just defaults back to safe mode the next time i run something)

dmb2exe hasn't asked for any permissions in that regard, but i suspect that safe mode is still the culprit. how do i get the darned thing to always run in trusted again? it's annoying for all other games i play too

edit: instead of "trusted" and "safe" i think i mean "safe" and "ultra-safe"

Saturday, September 05, 2009 07:22AM
(Edited on Saturday, September 05, 2009 11:04AM)

#15 Haywire:  

Zaole wrote:
> i still got the same error :3

So did I, just run it directly through the dmb intead of "Run" through DM, then it workef.

Saturday, September 05, 2009 07:12AM

#14 Zaole:  

i still got the same error :3

Saturday, September 05, 2009 07:12AM

#13 Metamorphman:  

Alright, version 2 is now out. Copying the byond bin files is a whole deal easier now, you just have to enter the BYOND Bin directory and dmb2exe handles it for you.

Also, the problems Zaole and Haywire described should be fixed now.

Friday, September 04, 2009 11:14PM

#12 Metamorphman:  

I have figured out what the problem is, BYOND's built-in security checks are not allowing you to run shell("makensis setup.nsi") which messes the whole thing up. I'm working on fixing it as quick as I can though.

Thank you very much for your input Zaole.

Friday, September 04, 2009 01:01PM

#11 Zaole:  

when i told setup.nsi to compile WITH a .ico selected (which i had already used to successfully make a built-in BYOND exe):

Processing script file: "C:\Users\Owner\Documents\BYOND\MyHub\metamorphman\dmb2exe\se tup.nsi"
!define: "dataDirectory"="data"
!define: "exe"="game.bat"
SetCompressor: lzma
OutFile: "temp"
SilentInstall: silent
Icon: "icon.ico"
Error while loading icon from "icon.ico": invalid icon file
Error in script "C:\Users\Owner\Documents\BYOND\MyHub\metamorphman\dmb2exe\se tup.nsi" on line 6 -- aborting creation process

when i told it to do it without the .ico (not showing all of it, just starting near where the error happens):

File: "trace.bat" [compress] 16 bytes
File: "nsExec.dll"->"$PLUGINSDIR\nsExec.dll" [compress] 2978/6656 bytes
Plugin Command: Exec game.bat
SectionEnd
!define: "dataDirectory" already defined!
Error in script "C:\Users\Owner\Documents\BYOND\MyHub\metamorphman\dmb2exe\se tup.nsi" on line 12 -- aborting creation process

also, running makensis apparently pulls it up but then very suddenly closes it

Friday, September 04, 2009 12:50PM

#10 Metamorphman:  

Zaole wrote:
> yup and yup
>
> could it be that vista has its penis in my butt?

It could very well be Vista.

Friday, September 04, 2009 12:46PM

#9 Metamorphman:  

Would you be so kind as to follow the steps I gave Zaole too please?

Friday, September 04, 2009 12:29PM

#8 Haywire:  

Same thing, what Zaole said.

Friday, September 04, 2009 12:28PM

#7 Metamorphman:  

Would you please excuse me for this inconvenience and try:
1- Run dmb2exe, select your DMB and rsc files and hit 'MAKE EXE', and leave the program there, do not close it.

2- Navigate to the dmb2exe directory, right click on setup.nsi and select 'Compile NSIS Script'

3- Tell me what it says.

Also, go to Run -> cmd, type in makensis and tell me if it outputs the sort of stuff it should be, like 'Copyright NSIS blah blah blah', not some error like 'Unfound command/file/etc'

Again, I'm very sorry for the inconvenience.

Friday, September 04, 2009 12:27PM
(Edited on Friday, September 04, 2009 12:46PM)

#6 Zaole:  

yup and yup

could it be that vista has its penis in my butt?

Friday, September 04, 2009 12:20PM

#5 Metamorphman:  

Ok, firstly, I know this may sound stupid, but do you have NSIS installed? :P

Is game.bat still in the /data directory?

Friday, September 04, 2009 12:19PM

#4 Zaole:  

i'm getting the "Something went wrong during the compilation on the NSIS script." error

here's the location of all the bin stuff: C:\Users\Owner\Documents\BYOND\MyHub\metamorphman\dmb2exe\da ta

and here's my variable value: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem ;C:\Program Files (x86)\Common Files\DivX Shared\;C:\Program Files (x86)\NSIS

the only thing in that \data folder (other than the bin files) is "game.bat", but from what i can remember it should include my own game stuffs. is that what the exe's doing or is that a missing step?

edit: "data" is showing up with a space inside of it after i post the comment, but that's not how it actually is

Friday, September 04, 2009 12:10PM

#3 Chris Gayle:  

+Yea

Friday, September 04, 2009 12:03PM

#2 Metamorphman:  

Zaole wrote:
> some quick questions since i'm trying this out and incompetent with computers
>
> > 0. Before doing anything else, be sure to paste all of the BYOND Bin files into the data directory. The byond bin files can be located at [BYOND INSTALLATION DIRECTORY]\bin. Be sure to copy and paste all of the files in this folder into the data folder. Press the 'Access Data Folder' Button for quick access to the data folder.

> to be clear, you add the bin files to the data directory of whatever game you intend to make an executable, right? not to dmb2exe? because it seems kind of misleading to have a quick access button that takes you to dmb2exe's data directory

You add the bin files to the directory you access using the 'Access Data Folder' button. Since DM Doesn't have the best of File Manipulation techniques, this is the best way I could have thought it out without things getting too complicated. What happens is, when you select your DMB and your RSC files, they are copied into this same /data folder with their names changed to 'game.dmb' and 'game.rsc'.

It is the contents of the /data folder that are packed into your executable. Upon running said executable, the contents are deposited into a temp directory where game.bat is told to run itself. game.bat runs itself, and tells the system to run game.dmb using dreamseeker.exe found in the same folder.

> > 4. Fine 'Path' in the System Variables menu and Select 'Edit'.
> 5. Add ;[YOUR NSIS INSTALLATION DIRECTORY] to the end of Path
>
> do we add it to the variable name or variable value? also, do we add the FULL directory? (ie starting from C:\)

You add the full path (ie. C:\Program Files\NSIS ) to the variable value.

Friday, September 04, 2009 11:41AM

#1 Zaole:  

some quick questions since i'm trying this out and incompetent with computers

> 0. Before doing anything else, be sure to paste all of the BYOND Bin files into the data directory. The byond bin files can be located at [BYOND INSTALLATION DIRECTORY]\bin. Be sure to copy and paste all of the files in this folder into the data folder. Press the 'Access Data Folder' Button for quick access to the data folder.

to be clear, you add the bin files to the data directory of whatever game you intend to make an executable, right? not to dmb2exe? because it seems kind of misleading to have a quick access button that takes you to dmb2exe's data directory

> 4. Fine 'Path' in the System Variables menu and Select 'Edit'.
5. Add ;[YOUR NSIS INSTALLATION DIRECTORY] to the end of Path

do we add it to the variable name or variable value? also, do we add the FULL directory? (ie starting from C:\)

Friday, September 04, 2009 11:33AM

 

 

If you want to IM Me

If you want to IM me, please note that I cannot use MSN because of my ISP. I can, however, use AIM and GoogleTalk. Also, you will have to leave your AIM/GoogleTalk screen name in my comments box in order for me to add you to my friends, cause my IM, Pidgin, is stupid and doesn't show "This person wants to add you to their friends list. Accept?" alerts.

AIM: aidinbahador
GoogleTalk: aidinbahador@gmail.com
Yahoo Messenger: aidin_bahadornejad@yahoo.com.au

My Hosted Files

(156.0 KB)

Blog Calendar

September 2009
Su Mo Tu We Th Fr Sa
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
 
«Jun