Jump to content


Photo

39dll V2.5


  • Please log in to reply
2510 replies to this topic

#21 Yourself

Yourself

    The Ultimate Pronoun

  • Retired Staff
  • 7341 posts
  • Version:Unknown

Posted 30 June 2005 - 02:00 PM

You wrote scripts in GM without using any GML? That's pretty impressive.
  • 1

#22 39ster

39ster

    GMC Member

  • GMC Member
  • 898 posts

Posted 30 June 2005 - 02:07 PM

You wrote scripts in GM without using any GML?  That's pretty impressive.

<{POST_SNAPBACK}>

Ahem, quote from myself in the first post:

Speed:
With an exception to the splitstrings script, the only gml used in the scripts are the
external_call functions.

Why the hell are we even talking about this? Why did you bring this up?

Edited by 39ster, 30 June 2005 - 02:08 PM.

  • 0

#23 Yourself

Yourself

    The Ultimate Pronoun

  • Retired Staff
  • 7341 posts
  • Version:Unknown

Posted 30 June 2005 - 02:10 PM

Well then you used GML. Besides, how much GML does GMSock actually use? Sure it has many scripts, but are each of those scripts very large? And also, even if your scripts are faster, aren't you just leaving more work to the programmer? All the GML you left out will probably end up being put back in by the programmer anyway, won't it?
  • 0

#24 39ster

39ster

    GMC Member

  • GMC Member
  • 898 posts

Posted 30 June 2005 - 02:11 PM

Well then you used GML.  Besides, how much GML does GMSock actually use?  Sure it has many scripts, but are each of those scripts very large?  And also, even if your scripts are faster, aren't you just leaving more work to the programmer?  All the GML you left out will probably end up being put back in by the programmer anyway, won't it?

<{POST_SNAPBACK}>

No. Maybe you should actually try the dll and see for yourself, Yourself. I said its handled by the dll.

Edited by 39ster, 30 June 2005 - 02:12 PM.

  • 0

#25 Yourself

Yourself

    The Ultimate Pronoun

  • Retired Staff
  • 7341 posts
  • Version:Unknown

Posted 30 June 2005 - 02:28 PM

I could, but there's no way I could compare it to GMSock as I don't have that (and the site's bandwidth exceeded, so I can't get it). I just think it's a bit silly of you to advertise this as faster when you said yourself you didn't actually use GMSock.
  • 0

#26 39ster

39ster

    GMC Member

  • GMC Member
  • 898 posts

Posted 30 June 2005 - 02:32 PM

I could, but there's no way I could compare it to GMSock as I don't have that (and the site's bandwidth exceeded, so I can't get it).  I just think it's a bit silly of you to advertise this as faster when you said yourself you didn't actually use GMSock.

<{POST_SNAPBACK}>

Yeah i did say that, but then again look at the date when i posted that. I could of used gmsock within 7 months. I also said in that post (the one that i made before i ever used gmsock) "My dll doesnt have much gml so it may or may not run faster." Never actually saying it IS faster.

Edited by 39ster, 30 June 2005 - 02:33 PM.

  • 0

#27 yourjustconfused

yourjustconfused

    GMC Member

  • New Member
  • 11 posts

Posted 30 June 2005 - 05:32 PM

Is there a max to how large the message your sending is?
  • 0

#28 darkmage

darkmage

    GMC Member

  • New Member
  • 518 posts

Posted 01 July 2005 - 07:29 PM

i tried to connect to eachother through lan but nothin was recieved maybe a better example would help

becuase i think i am doing somethin wrong with connecing so can you maybe make an example just that a few people can connect and walk or sometihng

it would really help out other people and me ofcourse to :angry:
for so far i have see it looks good but are u shure the irc works because when 2 are connected they cant chat with eachother only with them selves :S:S
  • 0

#29 39ster

39ster

    GMC Member

  • GMC Member
  • 898 posts

Posted 02 July 2005 - 02:12 AM

i tried to connect to eachother through lan but nothin was recieved maybe a better example would help

becuase i think i am doing somethin wrong with connecing so can you maybe make an example just that a few people can connect and walk or sometihng

it would really help out other people and me ofcourse to :D
for so far i have see it looks good but are u shure the irc works because when 2 are connected they cant chat with eachother only with them selves :S:S

<{POST_SNAPBACK}>

The irc program is very simple and i forgot to add a way to recieve messages from other people when i released it. Im making a much more advanced online game example right now.
  • 0

#30 39ster

39ster

    GMC Member

  • GMC Member
  • 898 posts

Posted 03 July 2005 - 02:51 AM

Hey iv made a mmorpg engine for you guys to use. http://forums.gamema...howtopic=136369
  • 0

#31 GM6_Dude

GM6_Dude

    I am mikesgm6

  • New Member
  • 167 posts

Posted 04 July 2005 - 02:04 AM

Hey iv made a mmorpg engine for you guys to use. http://forums.gamema...howtopic=136369

<{POST_SNAPBACK}>


OMG THIS IS NEAT!!!!!!1

i needed this to make my new ...........
wait better keep it a secret

but when u see the best online game :huh: j/k
just remember u gave that project its life
  • 0

#32 Rebound->

Rebound->

    GMC Member

  • New Member
  • 152 posts

Posted 04 July 2005 - 05:17 AM

LMAO Yourself, you're so stupid :-P
Nice DLL 39ster, i'm actually going to try and test this against GMsock. Good job.
  • 0

#33 GM6_Dude

GM6_Dude

    I am mikesgm6

  • New Member
  • 167 posts

Posted 04 July 2005 - 06:20 PM

Hey iv made a mmorpg engine for you guys to use. http://forums.gamema...howtopic=136369

<{POST_SNAPBACK}>


OMG THIS IS NEAT!!!!!!1

i needed this to make my new ...........
wait better keep it a secret

but when u see the best online game :) j/k
just remember u gave that project its life

<{POST_SNAPBACK}>

:huh: <ME
  • 0

#34 DJ Gman

DJ Gman

    GMC Member

  • New Member
  • 685 posts

Posted 04 July 2005 - 11:06 PM

this dll is a bit confusing could use a more in depth help file :huh:
  • 0

#35 Zaltron

Zaltron

    GMC Member

  • New Member
  • 14 posts

Posted 05 July 2005 - 03:05 AM

Hey, I think this thing is great! I have seen one bug with 2 people though. When p1 and p2 and gone in and and of both maps then p1 was in the house map and p2 was outside of the house map, p1 could see p2 at the top of the house map except that p2 looks like he was stuck in the black on the outside of the house in the house map even though he wasn't on that map. Hope that helps :\. Also, I looked through your scripts and couldn't figure where and when you sent your x and y data to the server, I was just wondering, where in your scripts are you doing that?

Edited by Zaltron, 06 July 2005 - 03:06 AM.

  • 0

#36 39ster

39ster

    GMC Member

  • GMC Member
  • 898 posts

Posted 05 July 2005 - 08:59 AM

I have now made a tutorial for the dll! Its in the zip and its called tutorial.rtf.

I also updated the dll and scripts so if you have already started making your game using the old scripts then to use the new ones do this:
Under scripts, remove the folder the dll scripts are in
Go to File->Merge game and select the DllScripts.gm6

Updates:
The only real update to it is writestring() and readstring() are more extensive and now requires less programming to use.
This is the old way you could of used writestring() and readstring() (you can still do it this way in the new update):
writestring("hello");
readstring(bytesleft()); //had to put how much letters to recieve.

Thats all well and good if your only sending one string over winsock, but what if you want to something like x, y, user and password in one message? How are you going to know how long the username string is and the password string? The new update makes strings alot easier to use because you can use them like readshort() or readint() where you dont have to give an argument.
//Write the data
writeshort(x);
writeshort(y);
writestring("39ster", true);
writestring("123456", true);

//Reading the data
x = readshort();
y = readshort();
username = readstring();
password = readstring();

How does it work? Simple. If you set the second argument in writestring() to
true then that means to add a Null (ascii code 0) terminator character after the string. Now when you dont set argument0 or if argument0 is 0 in readstring() then it tells the dll to read until it reaches the null terminator.

What if i want to send a string over a text based protocol..Text bases protocols dont allow the ascii code 0.
You can define your own seperator string other than the ascii code 0!
Example:
//Writing the data
writestring(username + ":" + password + ":");

//Reading the data
username = readstring(0, ":");
password = readstring(0, ":");

Warning: Do not write a string with a null terminator if your going to read it using your own seperating string! This will crash the game.

Also i have removed the splitstring() function because its not needed anymore!

Edited by 39ster, 05 July 2005 - 09:24 AM.

  • 0

#37 DJ Gman

DJ Gman

    GMC Member

  • New Member
  • 685 posts

Posted 06 July 2005 - 03:51 PM

thanks the tutorial helps a lot
  • 0

#38 Stryke

Stryke

    fcuκ™

  • GMC Member
  • 606 posts

Posted 07 July 2005 - 12:13 AM

I made an .gm6 for everyone that wants a online example that is less advanced. It only works with 2 players so if you want to work with unlimited players you gotta edit it. http://www.rocketsof...s/RPGClient.gm6
This example is probably good for a pong game.

Edited by Stryke, 07 July 2005 - 12:13 AM.

  • 0

#39 Timmo

Timmo

    GMC Member

  • New Member
  • 558 posts
  • Version:GM:HTML5

Posted 07 July 2005 - 12:18 AM

God dammit, this dll is so good. But why not there are much posts about it? This is much better than Gm's mplay functions and more simple too.
  • 0

#40 Stryke

Stryke

    fcuκ™

  • GMC Member
  • 606 posts

Posted 07 July 2005 - 05:53 PM

Yeah, only 2 pages from December 2004 - July 2005.. sad :D
  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users