Jump to content


Photo

[blaxun] Online Engine/examples And Documentation


  • Please log in to reply
1484 replies to this topic

#61 Dinsdale

Dinsdale

    GMC Member

  • New Member
  • 1389 posts

Posted 10 January 2008 - 07:49 PM

PM Dinsdale...he needs to know where the IDs are....BTW can you add me on MSN?  If you have?

I'm going to run an auto clicker test!

<{POST_SNAPBACK}>

I know where they are. It just seems overly confusing with giving ids and assigning all these variables to new instances etc etc. If I could just get that down.
  • 0

#62 BlaXun

BlaXun

    Slime Online Creator

  • GMC Member
  • 2615 posts
  • Version:GM:Studio

Posted 10 January 2008 - 09:24 PM

I added another tutorial.
This time its the basic engine with COLLECTIBLES.
I added a manual to the archive, here is whats inside:

[What does this do?]

I created this on request.
Its a pretty simple thing.
The Player shall only be allowed to take an item ONCE with his account.
The items we will use are a Crown and...dunno....looks like some kind of stick with wings :P
Read on to learn how I did it =)


[What was added?]

Sprites: spr_collectible (Client only)
Case: MSG_COLLECTIBLE = 9 (Server and Client)
Objects: obj_collectible (Client)
Scripts: case_msg_collectible (Server and Client)


[How does it work?]

The obj_collectible is invisible by default.
In its create event it will send the message MSG_COLLECTIBLE
to the server.
This message will contain the items collectible_id, this ID is set in the Creation Code
of the object in the room.

Now the server will open the account file of the player.
Here it will then check if there is a entry for the collectibles ID.
If there isnt, then we send teh client a message.
The client will then check all collectibles in its room and compare its id
to the collectible_id that was recieved.
If the id matches we make the collectible visible.
The Client can get it now.

When touching the visible collectible the collectible will send a message to the server.
The message will contain the collectibles ID again.
Now the Server will write the entry into the Players account.

And thats it =)

Hope I could help a bit.

BlaXun

Enjoy =)
  • 0

#63 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 10 January 2008 - 09:24 PM

Ok, Add me on MSN then you may have blocked me...I'm rot740@hotmail.com ! I will be on in...5 minutes!

You need to add position/map saving!

Edited by GMREC1111, 10 January 2008 - 09:38 PM.

  • 0

#64 cswenson1

cswenson1

    CS Games

  • New Member
  • 725 posts

Posted 10 January 2008 - 10:15 PM

ok why is it not working?
1st: i opened up the server, and turned it on.
2nd: i turn the game into an exe.
3rd: i send the exe AND the dll to another computer of myn.
4th: i opened up the game on the computer i have the server running on.
5th: i opened up the game on the other computer of myn.
6th: i made an account on the one the server was running on, then logined into the game.
7th: on the other computer of myn, i clicked the create account button and i said that it couldnt connect to the server.

why is it not connecting?
  • 0

#65 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 10 January 2008 - 10:18 PM

ok why is it not working?
1st: i opened up the server, and turned it on.
2nd: i turn the game into an exe.
3rd: i send the exe AND the dll to another computer of myn.
4th: i opened up the game on the computer i have the server running on.
5th: i opened up the game on the other computer of myn.
6th: i made an account on the one the server was running on, then logined into the game.
7th: on the other computer of myn, i clicked the create account button and i said that it couldnt connect to the server.

why is it not connecting?

<{POST_SNAPBACK}>

One thing! Do you have a router or firewall turned on? Another please spell mine right! Then again did you change the port that was default? Like 1337? I'm not sure but you would have to change it in the client too!

BTW asking for an engine with those is a great idea! It's just it would be advanced and lets not hurt anyones brains yet! There is nothing to learn from with shops, items, trading (somewhat) and money isn't explained for anybody to learn! It's the same as theres no 39dll lib! They never made it because it is meant to be used by advanced users and it would only be able to do basic functions. There should be one like this but nobody took the job of it! It is true that it can be the best...but it would also be the hardest! Heres something everyone says. Try using MPlay first...make a game and think about it...keep going through the scripts and stuff to know whats happening! There is money saving already but it is a bit limited! Hope it helps?

Edited by GMREC1111, 10 January 2008 - 10:31 PM.

  • 0

#66 cswenson1

cswenson1

    CS Games

  • New Member
  • 725 posts

Posted 10 January 2008 - 10:24 PM

no, i didnt change the default port, its still 1337, ive even checked in the notepad type thing it wrote.
  • 0

#67 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 10 January 2008 - 10:31 PM

Ok, Is there a router or firewall?
  • 0

#68 cswenson1

cswenson1

    CS Games

  • New Member
  • 725 posts

Posted 10 January 2008 - 10:39 PM

i think my fire wall is turned off on this one, but on the other one i think it is turned on... i dont know how to trn it on and off though...

i dont know how that would be a problem though, if a block message ever comes up i click unblock, and ive done an mplay thing from this comp to that comp and it work just fine...

Btw, why isnt th slime online homepage down, i want to download slime online.

Edited by cswenson1, 10 January 2008 - 10:53 PM.

  • 0

#69 BlaXun

BlaXun

    Slime Online Creator

  • GMC Member
  • 2615 posts
  • Version:GM:Studio

Posted 10 January 2008 - 10:53 PM

You propably forgot to change the IP that the client connects to to the IP of your computer that runs the SERVER ;)
  • 0

#70 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 10 January 2008 - 11:07 PM

You propably forgot to change the IP that the client connects to to the IP of your computer that runs the SERVER ;)

<{POST_SNAPBACK}>

Lol, Maybe you forgot the default was the host yourself...he might have only connected to one but who knows! Did you connect only one? Was it the server? If yes go to ipchicken.com and find out! Not directed to BlaXun...just adding on! Also...if you don't know how to turn the firewall off...I suggest you don't try this! A firewall...hmmm...the Control Panel...hmm Windows Firewall...hmm....option OFF! Or you could add the game COMPILED and allow it! Might sound rude...

I want to hear the background music! :P NO FAIR! Eh...I'll just go online...NO the server I'm on is off! Whatever...

Edited by GMREC1111, 10 January 2008 - 11:17 PM.

  • 0

#71 cswenson1

cswenson1

    CS Games

  • New Member
  • 725 posts

Posted 10 January 2008 - 11:34 PM

which part of the server do i edit to change the ip address?? or do i have to edit the dll, if so how?
  • 0

#72 BlaXun

BlaXun

    Slime Online Creator

  • GMC Member
  • 2615 posts
  • Version:GM:Studio

Posted 10 January 2008 - 11:43 PM

You dont have to edit the server, but the client:

Client.gml -> Scripts -> Engine Functions -> scr_init_engine -> global._ip = 'insert ip here'
  • 0

#73 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 10 January 2008 - 11:45 PM

which part of the server do i edit to change the ip address?? or do i have to edit the dll, if so how?

<{POST_SNAPBACK}>

Ok, I will suggest you stop trying! It's in a script...I want you to find this! This is a problem and you are the maker! Now go find the problem! You can't make an online game if you don't know that! Just look around...it starts with like 127.0.0.1? like that?

BTW BlaXun I think s/he has to learn before they try! This is a very bad question to ask...I mean he has to learn it! I had too and this is simple! SORRY if this is a little rude! My posts are like that...I thought you were like idle?

Edited by GMREC1111, 10 January 2008 - 11:47 PM.

  • 0

#74 BlaXun

BlaXun

    Slime Online Creator

  • GMC Member
  • 2615 posts
  • Version:GM:Studio

Posted 11 January 2008 - 12:04 AM

Sry, I closed MSN cause I left for a bit.
Now Im back but Playing Ragnarok Battle Offline ;)

About the learning thing:

Yes, I agree he/she has to learn, but he/she propably couldnt even thest if all the learning would be worth it...so I try to help so he/she can test first =)
  • 0

#75 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 11 January 2008 - 12:13 AM

Sry, I closed MSN cause I left for a bit.
Now Im back but Playing Ragnarok Battle Offline ;)

About the learning thing:

Yes, I agree he/she has to learn, but he/she propably couldnt even thest if all the learning would be worth it...so I try to help so he/she can test first =)

<{POST_SNAPBACK}>

Fine...lol because you were AO I didn't know you left...What happened to slimeonline.org? I wanna see what I can do with your engine...You should start making advanced because there is enough things to add! No wonder you were like idle!

I just opened the new one! You added the delay in the clicks...collectibles! Now all you have to do is make it like an RPG! Make the character able to choose to wear the crown and other thing like a wand type thing? That could be an Advanced?

Edit: BTW I looked at that game...It looks awesome!

Edited by GMREC1111, 11 January 2008 - 12:31 AM.

  • 0

#76 matty_richo

matty_richo

    GMC Member

  • GMC Member
  • 470 posts
  • Version:GM8

Posted 11 January 2008 - 12:33 AM

i think u forgit to add 39dll in it, so i copied it from my Stick Online folder and it said

error defining external function
  • 0

#77 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 11 January 2008 - 12:35 AM

Did you restart the game/server? You might have to! Or you just didn't extract it!
  • 0

#78 BlaXun

BlaXun

    Slime Online Creator

  • GMC Member
  • 2615 posts
  • Version:GM:Studio

Posted 11 January 2008 - 12:37 AM

The 39dll is in every of those three tutorials that I uploaded until now.
  • 0

#79 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 11 January 2008 - 12:38 AM

Ok...so he/she didn't extract it then! It cant see zipped things!
  • 0

#80 JordanMaster22

JordanMaster22

    GMC Member

  • New Member
  • 496 posts

Posted 11 January 2008 - 12:39 AM

lol all these mega advanced online engines with the scary coding

if xcy ! =  (blank)
        {
   show_message('omg')
                   show_message('whats going on??')
}
    draw_text(x,y,'i leik to eat cheese ^^')
    if yo mama happens
        {
do_somet1ng('holy crap wtf?')                                          }

EDIT: blaxyown ur gmc inbox is full

Edited by jchalase, 11 January 2008 - 12:42 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users