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

A long time ago, I wanted to distribute my games freely and universally, and the only programming language I was bothered to make anything in was DM. At this time, BYOND already had a crappymethod of making standalone exes for itself:

Make an exe which:
- downloads your game for you.
-- if you don't have BYOND installed on your system:
--- download BYOND too.
- run game after all this downloading is finished or the game and BYOND have already been downloaded.

But this was not what I wanted. I wanted to distribute one file and have that file be the only thing that a user has to run to play my game, without having to download anything extra and wait a couple more minutes to play. I thought of a way of doing this, and py2exe was the first thing that came to mind. For those of you who don't know what py2exe does, it takes all the necessary dlls for a python script to run and packages them, along with a .exe which tells your PC to run said python script using the packaged python dlls.

This meant that the user didn't have to download python in order to use the program, which in turn gave the developer much more power over how he/she could distribute his/her python program/script/piecake.

So why couldn't something like this be done for DM? It seems simple enough. Why hasn't anyone tried it yet?

I suggested this method to the BYOND developers here which was met by general disagreement. So I said 'Darn them, I'll just do it myself' but I didn't have the skills necessary. So I put this idea in the back of my mind and let it rest there for many many months until tonight, when it popped up again, and I was ready for it this time.

I thought 'Well, why over-complicate things? I could just use a simple .bat file to run my dmb and have everything neat and tidy!'. The problem, again, was that this idea was very prone to problems, though it actually does work, and will need some support and tweaking from developers with more competence than I ( I lack the skills to progress this much further ). So I present to you, the brainchild of my idea, the Standalone version of Treasure Turner. After downloading the zip file, just extract and run "Treasure Turner.bat"

On a side note, if you run Treasure Turner.bat don't have BYOND installed it will ask you to "Select the BYOND Directory". I think this is for things like keeping track of the current BYOND Version installed and so on.

Posted by Metamorphman on Tuesday, September 01, 2009 02:32PM - 0 comments / Members say: yea +3, nay -0
(Edited on Tuesday, September 01, 2009 02:49PM)

A very merry rioting to you too!

Alot's been going on. You've probably seen it on the news. And you might not have. In which case you've been living under a rock. So just to clarify: secure.byond.com WAS FILTERED! I couldn't log in. :(

It's the whole government against one man. :(
Also, I turned fifteen on the 14th. ^^

Posted by Metamorphman on Thursday, June 18, 2009 03:13AM - 11 comments / Members say: yea +3, nay -1

Treasure Turner goes competitive!

Treasure Turner 1.6 now has a score system which will allow some form of competition between players.
The formula for calculating the rankings is as follows:

((levels played/totalmoves)+(levels played/totaltime))*levels played + highest level played to

I really am not too happy with this formula and it would be great to have someone with more expertise than me to help me with making a better one. Still, it's better than nothing. But be sure that this formula will be subject to change, and changes in the scores are easy to make global thanks to a secondary database for saving everything.

On a side note, I released an Alpha version of mDraw, my icon editing program which I've managed to perfect its drawing mechanism over time. I'm working avidly on it and hope to expand it into something helpful for the BYOND community.

On another side note, the Iranian Presidential Elections are around the corner. It won't make a difference if anyone different than the current president is selected, but still. It's a chance for people to laugh a bit at the candidates and crack some top notch jokes.

Hope you all have a nice summer. ( If it's summer for you like where I am )

EDIT: Link to Treasure Turner: http://byond.com/games/Metamorphman/TreasureTurner

Posted by Metamorphman on Wednesday, May 27, 2009 06:06AM - 4 comments / Members say: yea +3, nay -0
(Edited on Tuesday, July 28, 2009 10:08PM)

Treasure Turner

This afternoon after a long day of taking other people's crap at school, I sat down at home and decided to do some pixel art work. So I made a grass turf and some walls and some decorations for a house. It looked pretty cool to me. :P

So then, I was struck with an idea for a puzzle game that had nothing to do with I was doing. And I put the idea into effect pretty easily and made a nice little package.

Goes to show you just need some new motivation in general to get work done. :o

http://byond.com/games/hub/metamorphman.treasureturner

Have fun! It's small now but I'll be adding levels regularly.

Posted by Metamorphman on Tuesday, May 12, 2009 11:57AM - 12 comments / Members say: yea +1, nay -1

 

 

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