Current time: 05-23-2012, 04:45 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mobiles Disco emulator
Author Message
09-09-2010, 02:18 AM (This post was last modified: 09-11-2010 05:27 AM by fatman1.)
Post: #1
Mobiles Disco emulator
I was bored one Thursday evening, so i decided to try and create the fullest possible Mobiles emulator. I have learned a few things about mobiles, such as that the disco room can change colour and the spotlights move around. I have had to use my little knowledge left of Lingo to try and scrape out packets and functions so i can create them. This project is nicknamed pMobiles as it uses my Particle framework, im not sure if i even want to release this anymore since im afraid of people stealing like what usually happens to emulators.

Quote:Features complete:
  • Main room
  • A* Pathfinding
  • Disco room
  • Furniture from database - Not yet solid
  • Packet Handling
  • SQL connection
  • Sockets
  • Login
  • Ranks (1 = user, 2 = mod, 3 = admin, 4 = super admin/owner)
  • Register
  • Load rooms from database
  • Room entry/exit
  • Main & Disco room are linked
  • Dancing
  • Say
  • Shout
  • Whisper
  • Modify Data
  • Anti-hax - Not fully done, dont know some haxes yet Happy
  • Multiuser
  • Commands
  • Object parser
  • Sitting
  • Spotlights
  • Disco ball
  • Lookto
  • Disco room colour change
  • Maarit (gives you drinks and can say when you were last online)


Code:
[B][U]Todo:[/U][/B]
Finish furnishing both rooms

Quote:Commands
:spotlight number move num/follow name
:discoball on/off
:drink name
:lookto x y
:alert message
:alertuser name message
:alertroom message
:kickroom
:kickall
:goto roomid
:kick user
:roomcol HTMLCOLOURCODE (eg: #000000)
:warp x y

Screenshots
[Image: mobiles_chat.png]
[Image: mobiles_alert.png]
[Image: mobiles_dance.png]
[Image: mobiles_drink.png]
[Image: mobiles_maari.png]
[Image: mobiles_roomcol.png]
[Image: mobiles_spotty.png]

Original images
[Image: MobilesDisco1.png]
[Image: MobilesDisco2.png]

Setup guide
Download the server, website, client and database from http://www.mediafire.com/?emmwzpz6zu2vo60 and extract them to wherever. Go into the pmobiles folder which is where the server is located, find debug.properties and edit it to suit your needs. You will need to edit the database connection information and perhaps port if you want. Next, if you havent already, import the database via phpMyAdmin or whichever software you can use, i would advise naming the database pmobiles for ease.

Now you have the database down, its time to learn how to start the server! This part is essential, do not skim read it. Create a new batch file named server_start.bat or whatever you want, aslong as it ends in .bat. If you made the bat file in the pMobiles folder, insert the following code and save, otherwise, you will have to cd to Particle.exe.
Code:
Particle debug.properties

Try and start the server, if it starts up and doesnt crash after "initializing rooms" then you can skip to the next step! If you failed and it crashed, you will need to check your debug.properties file and check that the database connection info is correct. If it still doesnt work, you will need to download the MySQL Connector 5.2.3 for the .NET framework. Use Google.

Now, you want to play don't you? YEIDO. Ok, make sure you have a web server such as XAMPP (<3). Stick the site folder into root directory, maybe rename it to "disco" or something. Once you have done that, you can go to http://localhost/disco/ or http://localhost/site/ to play. Please note, nobody else can connect right now, that is the next step!

So, you've tested it and ran around, want others to play? You will need to edit the hosts file, but luckily for you i have included the uncompiled file in the pmobiles directory. You will need Macromedia Director MX 2004 or above to edit this file. Once you have the program, open up the file and edit the text field where it says localhost to your ip address, and if so, the port so you dont have to use 1337. Once you have done that, go to file and then hit publish. Just replace the old hosts.cct with your new hosts.cct in the site/dcr folder and reload the client.

If all else fails, watch this video and then post (i wont reply to PMs Happybracket) telling me your problem and i'll post back trying to help you.

PHP, MySQL, xHTML, CSS, JavaScript, C#, Lingo, AS3

[Image: mfpreviewsig.png]

http://sketcher.me
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
09-09-2010, 02:20 AM
Post: #2
RE: Mobiles Disco emulator
Very cool indeed, any chance we can it check out online?

http://williamrob.in/ Imawesome
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
09-09-2010, 02:23 AM
Post: #3
RE: Mobiles Disco emulator
(09-09-2010 02:20 AM)Willy Wrote:  Very cool indeed, any chance we can it check out online?

Yeah when ive done some more little things, had 2 people test so far and they pointed out a few bugs i need to iron out. I might need a VPS for it also, as my PC fails at connections Happy

PHP, MySQL, xHTML, CSS, JavaScript, C#, Lingo, AS3

[Image: mfpreviewsig.png]

http://sketcher.me
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
09-09-2010, 02:29 AM
Post: #4
RE: Mobiles Disco emulator
(09-09-2010 02:23 AM)fatman1 Wrote:  
(09-09-2010 02:20 AM)Willy Wrote:  Very cool indeed, any chance we can it check out online?

Yeah when ive done some more little things, had 2 people test so far and they pointed out a few bugs i need to iron out. I might need a VPS for it also, as my PC fails at connections Happy

Awsome! what features have you yet to impliment? or is it fully function?

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Find all posts by this user
Like Post Quote this message in a reply
09-09-2010, 02:43 AM
Post: #5
RE: Mobiles Disco emulator
nice!, very goodlooking, i like how everything looks so simple.
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
09-09-2010, 05:02 AM
Post: #6
RE: Mobiles Disco emulator
Added some more images of the disco in full swing. The room colour can be any html colour code, although it doesnt correspond. White would make everything black for example ColonP

PHP, MySQL, xHTML, CSS, JavaScript, C#, Lingo, AS3

[Image: mfpreviewsig.png]

http://sketcher.me
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
09-09-2010, 06:16 AM
Post: #7
RE: Mobiles Disco emulator
that's really cool, good job there sam. mobiles disco does look good, yay for old things.

Find all posts by this user
Like Post Quote this message in a reply
09-09-2010, 09:32 AM (This post was last modified: 09-09-2010 09:35 AM by Mikey.)
Post: #8
RE: Mobiles Disco emulator
Nillus built one on our Blunk framework. It's almost 100% tbh 8-) No doubt you have the code.

http://blunk.nillus.net/mobilesdisco/

http://fuzionsoft.com

[Image: Mike,0,ffffff,000000,0.png]
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
09-09-2010, 09:43 AM
Post: #9
RE: Mobiles Disco emulator
@mike Sams is coded in C#

http://williamrob.in/ Imawesome
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
09-09-2010, 04:33 PM
Post: #10
RE: Mobiles Disco emulator
isn't there some issues with copyright ownership over artwork & coding from Sulake or previous owners of Hotel Goldfish, or am I talking jibberish?
Find all posts by this user
Like Post Quote this message in a reply
Post Reply 


Forum Jump: