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

 

 

A ( Truly )Standalone BYOND Project

Following my last post, I decided to build upon what I thought was a nice first step towards making a completely standalone BYOND Project.

I went back down memory lane to look at some methods for turning py2exe executables into completely standalone .exe files. I took a look at this page and realized that, with a bit of tweaking, I could use the NSIS script on that page to do what I want! I followed up on the thought, and put it to use and managed to make a completely standalone exe for my game!

The steps to turn your game into a standalone exe file:
1. Create a New Folder any where. ( I usually put it on my desktop for quick access )

2. Create a New Folder in the Folder we created in step 1

3. Paste all the BYOND binary files ( found in the [BYOND Installation Directory]\bin folder ) into the New Folder we created in Step 2. After that, paste your game's .dmb and .rsc files into this folder too.

4. Open notepad, and paste the following line in:
"%cd%\dreamseeker" "%cd%\[NAME OF YOUR GAME'S DMB].dmb"

Be sure to replace [NAME OF YOUR GAME'S DMB] before saving this file. After that, go to File -> Save As -> Name the file 'game.bat' ( We will need this name later on ) and save it in the folder we created in Step 1.

5. Download NSIS.

6. Open notepad, and paste in the following script:
; dataDirectory is the path of the directry where
; the BYOND Binary files and your game's resources
; and dmb file will be stored in. The folder made in Step 2.
!define dataDirectory 'tt'

; This is the name of the .bat file which runs your game.
; You will not need to change this if you followed step 2
!define exe 'game.bat'

; Comment out the "SetCompress Off" line and uncomment
; the next line to enable compression. Startup times
; will be a little slower but the executable will be
; quite a bit smaller
SetCompress Off
;SetCompressor lzma

; It doesn't matter what you name this variable.
Name 'MyGame'

; This is the name of the final exe file that 
; will execute your game.
OutFile 'TreasureTurner.exe'

; This variable will make sure that NSIS 
; will not show itself when your game's .exe is run
SilentInstall silent

; This is the icon of your game's .exe
; The icon must be in the same directory as this script.
; Uncomment in order to specify an icon for your .exe
;Icon 'icon.ico'

; You don't need to touch this part.
Section
    InitPluginsDir
    SetOutPath '$PLUGINSDIR'
    File '${dataDirectory}\*.*'
    nsexec::exec '${exe}'
SectionEnd

Read through the script, and make changes as needed.
Save this file as 'setup.nsi' in the folder we created in Step 1.

7. Right click on setup.nsi and select 'Compile NSIS script'. This should Compile the script successfully, and make a new .exe file in the same directory as your script.

And there you have it, you have your BYOND Game, packaged neat and tidy in an easy to use executable file!

There are some questions that might arise for you after reading this post. I'll answer some of the likely ones below. Post your other questions in the comments of this post.

Q: How will players log in to a game without their BYOND Key?
A: BYOND will allow them to log in using their guest key with no extra work on their end.

Q: Ok, but that still won't help when I want to update their scores/give them medals on my hub!
A: This is one of the flaws in the plan that can be easily covered up. Simply ask players to enter a 'Screen Name' at the beginning of your game and use that screen name for scores/medals.

Q: How would I go about saving/loading save files this way? Wouldn't they be deleted since they're in a temp directory?
A: This is one of the big flaws in the plan. I don't have any workarounds for this, but you could always distribute your game in a .zip file and tell the user to execute your .bat in order to run the game. This way, savefiles will stay intact.

Q: Do we have to include ALL of the BYOND bin files? Even Dream Maker?
A: Of course you don't, but I'm not eactly sure which bin files are ok to delete and which aren't so I just let them all stay there. Safe to say though that deleting dream maker won't do any harm.

Posted by Metamorphman on Thursday, September 03, 2009 07:32AM - 10 comments / Members say: yea +3, nay -0
(Edited on Thursday, September 03, 2009 11:57AM)

« A (somewhat)Standalone BYOND Example · dmb2exe »

Login to post a comment.

#10 Tiberath:  

> Q: Ok, but that still won't help when I want to update their scores/give them medals on my hub!
A: This is one of the flaws in the plan that can be easily covered up. Simply ask players to enter a 'Screen Name' at the beginning of your game and use that screen name for scores/medals.

You know, I've already begun writing up a tutorial to deal with account logins that work around the BYOND Key system. They register an account on your website, they use those credentials to login to the game, while using the Guest key without knowing it.

Also, the white on the bright green HURTS ME!

Friday, September 04, 2009 08:21PM

#9 Metamorphman:  

I'd love to see this used for games like Efencea and Ultimatum so we could distribute them outside of BYOND, and bring in more players and potential developers.

Thursday, September 03, 2009 03:34PM

#8 Metamorphman:  

Most computer users aren't computer savvy. If I gave my friend an exe compiled using Dream Maker, he'd go all 'OMG IT'S DOWNLOADIN STUFFS IT BE VIRUSSSS/SPYWARE'.

That is what most people who think they're computer-savvy but are really not would think. I know a lot of people who'd think like that. I'd much rather prefer to hand them a file that doesn't arouse suspicion.

Also, you don't really think I'd distribute my games somewhere else without giving credit to BYOND, would you? That would be down right rude.

Thursday, September 03, 2009 01:05PM
(Edited on Thursday, September 03, 2009 01:26PM)

#7 Haywire:  

One reason for not adding this feature is because by asking to download/install BYOND they are also advertising and it helps grow the community in quantity, which is probably one of the main reason.

It's perfectly understandable why they wouldn't want to add it, but sure they aren't stopping you from writing your own, so go for it!

Anyhow, good work, really liking it.

Thursday, September 03, 2009 01:00PM

#6 Metamorphman:  

Yes. It truly is standalone.
I suggested it to them here but Lummox said no to my suggestion. After that, I kinda gave up on the idea.

Thursday, September 03, 2009 11:49AM

#5 Zaole:  

interesting. so it's truly standalone?

it'd be really nice if Tom & friends would make this style of creating the exe an additional built-in feature, because this sounds much more appealing than what it currently does. you should bring this up with him

Thursday, September 03, 2009 11:20AM

#4 Metamorphman:  

Also, the way BYOND's current exes have it, you have to have BYOND installed on your system to play the games, but with this method you don't need to have BYOND installed.

Thursday, September 03, 2009 10:19AM

#3 Metamorphman:  

BYOND's exe maker will make you download BYOND and your game. Whereas, this method of making an executable packages BYOND and your game in itself so you can just distribute this one file and the person who downloads it can play your game with no extra hassle.

Thursday, September 03, 2009 09:11AM

#2 Zaole:  

what are the differences between this and BYOND's exe maker? i know there are, but i'm too lazy to go check how the built in exe maker works

Thursday, September 03, 2009 09:05AM

#1 Metamorphman:  

Also, a completely standalone version of Treasure Turner can be found at:
http://www.byond.com/members/Metamorphman/files/ Treasure%20Turner.exe

Thursday, September 03, 2009 07:40AM

 

 

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