Jump to content


Photo

Netread Dll


  • This topic is locked This topic is locked
54 replies to this topic

#1 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 20 January 2007 - 11:46 PM

NetRead DLL

This DLL makes it easy to retrieve information from online documents. Yes, I know the 39DLL can do this, but this DLL makes it a lot easier. The example provided in this DLL will return the user's IP. If you want to know how it works, read below.

Download: NetReadDLL.zip

New Link

(~ 4KB)

Rock on,
Roach
  • 0
Posted ImagePosted Image

#2 Ian93

Ian93

    GMC Member

  • New Member
  • 146 posts

Posted 21 January 2007 - 12:55 AM

Awesome! Will definitely use this. Very simple and great when not much is needed.

Edited by Ian93, 21 January 2007 - 01:00 AM.

  • 0

#3 donovan

donovan

    The true coder

  • New Member
  • 40 posts

Posted 21 January 2007 - 08:43 PM

verry nice dll Roach
  • 0

#4 [SJB]Dude7

[SJB]Dude7

    GMC Member

  • New Member
  • 289 posts

Posted 21 January 2007 - 08:46 PM

Awesome job! Hope to use it soon <_<.
  • 0

#5 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 21 January 2007 - 08:57 PM

Great dll! You are really spitting out DLL's now.
Here is my IP:

        </UL></FONT></TD></TR></TBODY></TABLE></BODY></HTML>

Eh?

Also, you forgot the "_dll_" in this topic <_<.
  • 0

#6 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 21 January 2007 - 09:02 PM

http://whatismyip.org/ is currently closed for some reason. I believe one of their servers went down. It should be back up soon.

Also, the tag is not required yet. They're just throwing ideas around up in that pinned topic.
  • 0
Posted ImagePosted Image

#7 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 22 January 2007 - 02:16 PM

http://whatismyip.org/ is currently closed for some reason. I believe one of their servers went down. It should be back up soon.

<{POST_SNAPBACK}>

Yeah, I realised that.

Also, the tag is not required yet. They're just throwing ideas around up in that pinned topic.

<{POST_SNAPBACK}>

I know about the topic :). And I mean you have put the tag into the Dragger DLL topic, not this one... But as you said: it's not required yet.

Edit:
:D, Uhm... You see, it was IsmAvatars topic. You know, I mixed it up... Heh ._..

Edited by Daniel-Dane, 22 January 2007 - 05:45 PM.

  • 0

#8 BlaXun

BlaXun

    Slime Online Creator

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

Posted 22 January 2007 - 03:54 PM

Arkz...a few days ago I was lookin for such a dlll but nobody could realy help me...
Now I started my project and dont really need the dll anymore....

great job anyway >,<
  • 0

iBNKRoX.png


#9 coolsmile

coolsmile

    Programmer

  • New Member
  • 1346 posts

Posted 23 January 2007 - 12:08 AM

Wow, I like the onslaught of dlls :)
  • 0

#10 mme

mme

    MME

  • GMC Member
  • 1012 posts

Posted 23 January 2007 - 09:02 PM

http://whatismyip.org/ is currently closed for some reason. I believe one of their servers went down. It should be back up soon.

Also, the tag is not required yet. They're just throwing ideas around up in that pinned topic.

<{POST_SNAPBACK}>


you can just replace whatsmyip.org with

http://mami.hoogetec...rvers/ip/ip.php

it will also get you your ip address.

B.T.W. Nice DLL
  • 0
gmc_mdu2.pngrsa_gmc_sig.png

#11 Mini

Mini

    GMC Member

  • New Member
  • 196 posts

Posted 25 January 2007 - 12:59 AM

Sweet!!! IM totaly gunna use this!!!!

Coool dll ^_^
  • 0

#12 Bathy

Bathy

    GMC Member

  • New Member
  • 504 posts

Posted 25 January 2007 - 02:48 PM

Instead of releasing millions of these simple api wrappers, why not keep them in 1 dll?
  • 0

#13 Hay44444

Hay44444

    GMC Member

  • New Member
  • 181 posts

Posted 25 January 2007 - 03:01 PM

Very nice!!!!
  • 0

#14 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 25 January 2007 - 04:56 PM

Instead of releasing millions of these simple api wrappers, why not keep them in 1 dll?

<{POST_SNAPBACK}>

Or just put them all into an extension package. ^_^
  • 0

#15 1up Graphix

1up Graphix

    GMC Member

  • New Member
  • 171 posts

Posted 20 March 2007 - 09:05 PM

Why is HTTP so inconsistent? I use this for an online game server, and it never really gets the info right. Is it because I'm using to many queries?
  • 0

#16 FlipSide

FlipSide

    GMC Member

  • New Member
  • 281 posts

Posted 22 March 2007 - 08:47 PM

Does anyone know of a website that will return the IP address from a Host Name (that can be used with this DLL)?
  • 0

#17 Uzaki

Uzaki

    GMC Member

  • New Member
  • 409 posts

Posted 25 March 2007 - 09:20 PM

Awesome! Extremely simple to use. Hope I will get the chance to use it.
  • 0

#18 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts
  • Version:Unknown

Posted 01 April 2007 - 12:26 PM

This is a very good and helpfull dll, but i have only one problem, how do i read a whole document without knowing it's length? (is there any way to find it's size/length?)
And what happens if i read too much through a file?
Another problem just arose; after several attempts at reading a full file, i got a balloon popup about getting the vram minimum too low and then suddenly the gm program ends (after being denied memory requests).

Edited by uuf6429, 01 April 2007 - 12:44 PM.

  • 0

#19 pj357

pj357

    GMC Member

  • New Member
  • 80 posts

Posted 06 April 2007 - 10:14 PM

I get an "error defining external function" whenever I use this, anybody know why?
  • 1

#20 mme

mme

    MME

  • GMC Member
  • 1012 posts

Posted 06 April 2007 - 10:26 PM

Have you unziped it and put the dll in the same dir as your game/app
  • 1
gmc_mdu2.pngrsa_gmc_sig.png

#21 pj357

pj357

    GMC Member

  • New Member
  • 80 posts

Posted 06 April 2007 - 10:26 PM

yes
  • 0

#22 TheGameMaker

TheGameMaker

    the game maker

  • GMC Member
  • 296 posts
  • Version:Unknown

Posted 08 April 2007 - 08:21 PM

Very useful dll, Roach. Simple and cool.
  • 0

tgmsig.png


#23 bladesage

bladesage

    GMC Member

  • New Member
  • 1 posts

Posted 10 May 2007 - 01:49 AM

http://whatismyip.org/ is currently closed for some reason. I believe one of their servers went down. It should be back up soon.

Also, the tag is not required yet. They're just throwing ideas around up in that pinned topic.

<{POST_SNAPBACK}>



To get your IP address quick & easy, use my website. You can get your IP at http://ip.srdump.net.

It does exactly what the classic whatsmyip.org used to do, before they had to complicate things with a full site template.
  • 0

#24 ardnat

ardnat

    GMC Member

  • New Member
  • 421 posts

Posted 30 May 2007 - 09:57 PM

Thx, Now i can use for my gotomy pc clone! :D
  • 0

#25 GrayAvocado

GrayAvocado

    A big bad Wolf

  • GMC Member
  • 1226 posts

Posted 01 April 2008 - 12:48 PM

Sorry for the long time bump but i think this deserves to get to the light again + i have som comments. I think this is vary easy to understand, and start with. Brilliant!
  • 0

#26 Dom83

Dom83

    GMC Member

  • GMC Member
  • 138 posts

Posted 20 May 2008 - 06:10 PM

Hi
Can I load a picture from my website to a sprite with this dll ?
I tried this way :
sprite0 = netread("http://dom-productions.ovh.org/game/nuage.png",50236);
but it does not work.
  • 0

#27 halo shg

halo shg

    Programmer

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

Posted 29 May 2008 - 01:32 AM

Works a bit, but is sorta buggy for me.

It seems to read from the end up (Huh?) and there seems to be a limit on bytes (double huh?).
[codebox]
go of what I€™ve done. <br />
What I€™ve done.
</div>

<div id="admin">
[ <a href="java script:edit('Linkin+Park', 'What+I%27ve+Done')">Edit</a> ] [ <a href="http://www.google.co...n&q=Linkin Park What+I%27ve+Done lyrics" target="_blank" rel="nofollow">Search Google</a> ] [ <a href="http://www.lyricsplu...gin.com/forum/" target="_blank">Feedback Forum</a> ] [ <a href="java script:tellafriend()">Tell a friend</a> ] [ <a href="java script:configure()">Configure</a> ]
</div>

<div id="header">
<a href="http://www.lyricsplugin.com/" target="_blank">Upgrade to Lyrics Plugin version 0.2</a>
</div>

</body>
</html>

<script language="JavaScript">
<!--

var SymRealOnLoad;
var SymRealOnUnload;
function SymOnUnload()
{
window.open = SymWinOpen;
if(SymRealOnUnload != null)
SymRealOnUnload();
}

function SymOnLoad()
{
if(SymRealOnLoad != null)
SymRealOnLoad();
window.open = SymRealWinOpen;
if (SymRealOnUnload == null)
{
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
}
}

function SymInitWinOnload()
{
if ( SymRealOnLoad == null )
SymRealOnLoad = window.onload;
return SymOnLoad;
}

window.onload = SymInitWinOnload();

//-->
</script>
[/codebox]
When it should return
[codebox]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="http://www.lyricsplu...css/plugin.php" />

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

function SymInitWinOpen()
{
if (SymRealWinOpen == null)
SymRealWinOpen = window.open;
return SymWinOpen;
}

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

var SymRealWinOpen;
window.open = SymInitWinOpen();

//-->
</script>

<script language="javascript" type="text/javascript" src="http://www.lyricsplu...n.js"></script>
</head>
<body>

<div id="title">

What I've Done
</div>

<div id="artist">
Linkin Park
</div>

<div id="lyrics">
In this farewell, <br />
There€™s no blood, <br />
There€™s no alibi. <br />
€˜Cause I€™ve drawn regret, <br />
From the truth, <br />

Of a thousand lies. <br />
<br />
So let mercy come, <br />
And wash away€ <br />
<br />
What I€™ve Done. <br />
I€™ll face myself, <br />
To cross out what I€™ve become. <br />
Erase myself, <br />
And let go of what I've done. <br />

<br />
Put to rest, <br />
What you thought of me. <br />
While I clean this slate, <br />
With the hands, <br />
Of uncertainty. <br />
<br />
So let mercy come, <br />
And wash away€ <br />
<br />

What I€™ve Done. <br />
I€™ll face myself, <br />
To cross out what I€™ve become. <br />
Erase myself, <br />
And let go of what I've done. <br />
<br />
For What I€™ve Done <br />
<br />
I start again, <br />
And whatever pain may come. <br />

Today this ends, <br />
I€™m forgiving what I€™ve done. <br />
I€™ll face myself, <br />
To cross out what I€™ve become. <br />
Erase myself, <br />
And let go of what I€™ve done. <br />
What I€™ve done.
</div>

<div id="admin">
[ <a href="java script:edit('Linkin+Park', 'What+I%27ve+Done')">Edit</a> ] [ <a href="http://www.google.co...n&q=Linkin Park What+I%27ve+Done lyrics" target="_blank" rel="nofollow">Search Google</a> ] [ <a href="http://www.lyricsplu...gin.com/forum/" target="_blank">Feedback Forum</a> ] [ <a href="java script:tellafriend()">Tell a friend</a> ] [ <a href="java script:configure()">Configure</a> ]

</div>

<div id="header">
<a href="http://www.lyricsplugin.com/" target="_blank">Upgrade to Lyrics Plugin version 0.2</a>
</div>

</body>
</html>

<script language="JavaScript">
<!--

var SymRealOnLoad;
var SymRealOnUnload;
function SymOnUnload()
{
window.open = SymWinOpen;
if(SymRealOnUnload != null)
SymRealOnUnload();
}

function SymOnLoad()
{
if(SymRealOnLoad != null)
SymRealOnLoad();
window.open = SymRealWinOpen;
if (SymRealOnUnload == null)
{
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
}
}

function SymInitWinOnload()
{
if ( SymRealOnLoad == null )
SymRealOnLoad = window.onload;
return SymOnLoad;
}

window.onload = SymInitWinOnload();

//-->
</script>
[/codebox]

Weird, huh.
Any help would be appreciated.

Edited by halo shg, 31 May 2008 - 02:59 AM.

  • 0

Dev: MacBook Pro Retina Display 15" w/ Win7 (Parallels) running GM Studio: Master and GM8 (GMS: ANDROID JAVA EXTENSIONS ARE HERE!)
Devices: Samsung Galaxy Note II / Samsung Galaxy S III / iPhone 4S / iPad 2 / iPod Touch 5th gen



Politics' is made up of two words, 'poli,' which is Greek for 'many,' and 'tics,' which are blood-sucking insects.


-Gore Vidal


#28 posva

posva

    GMC Member

  • New Member
  • 610 posts
  • Version:GM8

Posted 30 May 2008 - 08:36 PM

can someone upload that file??
thanks
  • 0

#29 ChrisCompany

ChrisCompany

    GMC Member

  • New Member
  • 17 posts

Posted 04 June 2008 - 02:27 PM

Thanks you very much, I realy needed this. I tried to use 39DLL first but that crashed at the getip part. I will use this in my game and ofc give you credits ^_^
  • 0

#30 Jenner

Jenner

    Jenner

  • GMC Member
  • 904 posts

Posted 16 June 2008 - 07:52 PM

Why does it read backwards? Seems to be a bug.
  • 0

#31 mrsmes

mrsmes

    GMC Member

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

Posted 22 June 2008 - 02:26 AM

a onslaught of dlls, what game developer using game maker could ask 4 more, seriously it's wonderful.
  • 0

Assuming I helped you out in a questions and answers topic won't you return the favour by helping me with one my coding problems, or recommend some one who can chat to me over pms about helping and how to overcome my obstacles, after all lets just say I did help you or them or many people with similar problems, in that topic.

Here i have a topic for those of you struggling with type writer text and mugshots in your games especially if it is a rpg see the link below for more info

http://gmc.yoyogames...howtopic=619103

almost no code needed, only uses two events.

click here for the l8est version of feed the alien pizza, it has some major polished up features.


#32 Stuart12926

Stuart12926

    GMC Member

  • New Member
  • 6 posts

Posted 29 June 2008 - 07:37 PM

Thanks Rouch for this great dll, i made a online highscore and registration system with it ;) for a school project, but i won't release the source because te code is a mess ;)
  • 0

#33 Un_t0uch

Un_t0uch

    GMC Member

  • GMC Member
  • 868 posts

Posted 16 July 2008 - 05:36 PM

The site is down.

Can you re host it again somewhere?
  • 0
thx for the avantar t3mpets

QUOTE
hey guys im in a quote lol

THIS AVATAR IS FOR NEXT YEAR THEREFORE I AM THE FURTHEST IN THE FAD

#34 zbox

zbox

    GMC Member

  • GMC Member
  • 2618 posts
  • Version:Unknown

Posted 26 August 2008 - 10:30 AM

Yeah, this is a great DLL. But i don't get the number thing in netread("http://whatismyip.org",100); How do i get that number if i want to read a whole page of info?
zbox
P.s Good Dll :P
  • 0

#35 Doogie_Forever

Doogie_Forever

    Dog Warrior

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

Posted 26 August 2008 - 12:47 PM

Hi
Can I load a picture from my website to a sprite with this dll ?
I tried this way :

sprite0 = netread("http://dom-productions.ovh.org/game/nuage.png",50236);
but it does not work.


Make it copy to a file then add sprite from file.
  • 0

#36 paulman8888

paulman8888

    GMC Member

  • New Member
  • 140 posts

Posted 05 September 2008 - 05:59 PM

Is there a way to stop netread from freezeing the frame?
  • 0
Love life!
You only get one chance!

------------------------------------------------
Its a funny old world!
Mans lucky if he gets out alive!

#37 johnie102

johnie102

    GMC Member

  • New Member
  • 1608 posts

Posted 10 September 2008 - 06:03 PM

Make it copy to a file then add sprite from file.

You would first have to save the string that the netread() function returns to a variable in GM. A string in GM terminates on a NULL character. You can't garantee that a file won't contain any NULL characters. And thus, this won't work.

Is there a way to stop netread from freezeing the frame?

Use it together with the GMThreads DLL
  • 0
Have I helped you? Thank me by playing my game


note that these graphics aren't in game... yet!

GENERATION 22: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

#38 PickleMan

PickleMan

    Programmer

  • New Member
  • 995 posts
  • Version:Unknown

Posted 21 September 2008 - 09:24 PM

PLEASE RELEASE THE SOURCE!
  • 0

#39 Lukearentz

Lukearentz

    My Two Cents

  • New Member
  • 2587 posts

Posted 01 October 2008 - 12:45 PM

Well, first I would like to say thanks for this little dll. Its very handy
However I have found a problem, it appears that it will load the file from the IE cache if its already there. This makes it of little use for a version checker, which is what I was using it for. My simple idea was:
1 - Have the game have a variable called c_ver
2 - Have a text file on the net that contains a number
3 - Have the dll read the text file save it as o_ver
4 - Compare the two variables to determine if it is the same version

But this only works the first time as it stores the file in the cache, which means it has to be cleared or re-downloaded to prevent trouble
Unless you can make it ignore the cache or force redownload, it causes problems.

Any Ideas?

Edited by Lukearentz, 01 October 2008 - 01:41 PM.

  • 0
I have left the GMC, and my domain is no longer registered to me.
All previous links will not work, for any information/links please PM me, and I may be able to help you

#40 Razon

Razon

    GMC Member

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

Posted 01 October 2008 - 02:33 PM

But this only works the first time as it stores the file in the cache, which means it has to be cleared or re-downloaded to prevent trouble
Unless you can make it ignore the cache or force redownload, it causes problems.

Any Ideas?

This is where html knowledge comes in, the fix is quite simple. Put a '#' at the end of the link, and have it increase a variable before it calls netread each time- then put that variable after the '#'. By doing this it will consider it a new file everytime, and it will re-download it instead of loading it up from the cache.
global.cachevalue+=1;
readfile=netread('http://www.link.com/file#'+string(global.cachevalue),99999);

Edited by RazonEX, 01 October 2008 - 02:35 PM.

  • 0

#41 Lukearentz

Lukearentz

    My Two Cents

  • New Member
  • 2587 posts

Posted 02 October 2008 - 01:34 AM

I don't quite understand, does that mean I have to have a different file name each time on the server?
  • 0
I have left the GMC, and my domain is no longer registered to me.
All previous links will not work, for any information/links please PM me, and I may be able to help you

#42 Razon

Razon

    GMC Member

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

Posted 02 October 2008 - 06:21 PM

I don't quite understand, does that mean I have to have a different file name each time on the server?

If you tried it then you would have found it, you don't have to have a different filename on the server- you just keep your normal filename.

In html, putting a '#' and number/s or character/s together like '#15' for example after the link- is a way to make it scroll to a certain part on a webpage if there's special coding on the page telling the browser where that spot is.

When sending this information to netread for any kind of link even if it's not a webpage, it makes it consider it a different link so that it doesn't load it up from the cache and let's it re-download it. And it doesn't effect the file download/read in anyway, quite simple really.

Edited by RazonEX, 02 October 2008 - 06:24 PM.

  • 0

#43 Lukearentz

Lukearentz

    My Two Cents

  • New Member
  • 2587 posts

Posted 03 October 2008 - 01:22 AM

Oh, so you were talking about anchors. Right?
Thats a smart way to do it. But it only works with HTTP. I was hoping I could use it for FTP as well but it didn't like it :whistle:.
It doesn't matter though. Thanks.

Another problem, Does anyone know how to stop it from freezing for about 30seconds when it can't connect to the net?

Edited by Lukearentz, 03 October 2008 - 05:12 AM.

  • 0
I have left the GMC, and my domain is no longer registered to me.
All previous links will not work, for any information/links please PM me, and I may be able to help you

#44 Razon

Razon

    GMC Member

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

Posted 03 October 2008 - 04:43 PM

Another problem, Does anyone know how to stop it from freezing for about 30seconds when it can't connect to the net?

I don't have a problem with mine freezing when it can't connect to the server or online, but when the server is down it will freeze until the server comes back up. It also did this with the 39DLL, does anyone know a workaround for this?

Edited by RazonEX, 03 October 2008 - 04:46 PM.

  • 0

#45 Recreate

Recreate

    Furry

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

Posted 03 October 2008 - 11:12 PM

There are so many possibilities with this dll!
Easy Ip banning
Easy ip finding
And lots more!
  • 0

If the post that you are reading was created prior to 2011. For the safety of the general public, It is not to be regarded under any circumstances.
Please don't ask me to join your group at anything.


#46 Frozenwounds

Frozenwounds

    GMC Member

  • New Member
  • 214 posts

Posted 25 October 2008 - 08:56 PM

This DLL is flawed.
The source only refreshes if the game restarts or if you go to the page and refresh it in internet explorer.
Going to solve that problem Roach?
  • 0

#47 Lukearentz

Lukearentz

    My Two Cents

  • New Member
  • 2587 posts

Posted 29 October 2008 - 02:32 AM

This DLL is flawed.
The source only refreshes if the game restarts or if you go to the page and refresh it in internet explorer.
Going to solve that problem Roach?

Did you even read the posts a few above this one? It solves the problem.
  • 0
I have left the GMC, and my domain is no longer registered to me.
All previous links will not work, for any information/links please PM me, and I may be able to help you

#48 Recreate

Recreate

    Furry

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

Posted 29 November 2008 - 11:34 PM

NetRead DLL

This DLL makes it easy to retrieve information from online documents. Yes, I know the 39DLL can do this, but this DLL makes it a lot easier. The example provided in this DLL will return the user's IP. If you want to know how it works, read below.

Download: NetReadDLL.zip

New Link

(~ 4KB)

Rock on,
Roach

Another awsome dll by roach,Keep up the good work!
  • 0

If the post that you are reading was created prior to 2011. For the safety of the general public, It is not to be regarded under any circumstances.
Please don't ask me to join your group at anything.


#49 PickleMan

PickleMan

    Programmer

  • New Member
  • 995 posts
  • Version:Unknown

Posted 19 December 2008 - 06:14 PM

Roach, we neeeeeeeeeeeeeeeeeeeeeeeeeeeed the source code.
  • 0

#50 ash47

ash47

    O_o

  • GMC Member
  • 1347 posts

Posted 22 December 2008 - 07:33 AM

mirror PLZ, link is down :unsure:
  • 0
Posted Image

Rate this topic: 0 | 1 | 2 | 3 | 4 | 5

PRESS IT
\/