Worldlserver Source

All Helbreath Server Source Discussion here.
Post Reply
Drajwer
<3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

wowowo

thanks
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

im having some troubles x/

Logged on Character Screen...
Created New Char...
Logged on Map...
Killed some slimes...
Then Changed GameServer Neutral to Elvine...
HGServer Elvine Says HACK!? _ CHARACTER SLAMMER DOESNT EXIST! ( Connection Lost )

Any help?
OWNED!<br><img src='http://img50.imageshack.us/img50/1386/p ... 3vsqn2.gif' border='0' alt='user posted image' /><br><br><img src="http://hbtop50.com/button.php?u=hbuonline" alt="Helbreath Top 50 - Keepin' it real." border="0" /><br><a href='http://www.hbuonline.net' target='_blank'>Helbreath United</a>
Hypnotoad
Member
Posts: 100
Joined: Wed Apr 28, 2004 8:16 pm

Post by Hypnotoad »

tracing this error now... it looks like VerifyCharacterIntegrity is not getting the right cAccountName..
<img src='http://www.playah.no-ip.com/images/Hypn ... imated.gif' border='0' alt='user posted image' />
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

great job hypno.

just a comment on your comments, in the text file you can add additional lines to load and save to a character file from the hg alone
but im now that i think about it, you mean when the character is created for the first time

anyway time to check out the wl source, thanks for doing this
-><-
Hypnotoad
Member
Posts: 100
Joined: Wed Apr 28, 2004 8:16 pm

Post by Hypnotoad »

alright i fixed it, i wasnt closing the file when u log out or switch zone... oopsies

find

Code: Select all

  	// can cause hgserver to crash because of this packet packet size!!!
  	// need to make fix in hgserver in regards to MSGID_RESPONSE_PLAYERDATA's dwSize
  	// eg if (dwSize > BUFFER) return; or something this is extremely exploitable
  	// all you have to do is send a huge txt file or packet to the server and crash
  	cp2 = new char[dwFileSize+1];
  	ZeroMemory(cp2, dwFileSize+1);
  	fread(cp2, dwFileSize, 1, pFile);
and replace with

Code: Select all

  	cp2 = new char[dwFileSize+1];
  	ZeroMemory(cp2, dwFileSize+1);
  	ReadFile(hFile, cp2, dwFileSize, &lpNumberOfBytesRead, NULL);
  	CloseHandle(hFile);


also:

add this to top of this function
DWORD lpNumberOfBytesRead;

this fixes BOTH the switch hgserver error and the loging->ogout->log back in character gone error. I will repack the sources and post them again.

reuploaded source disregard this message

-----------------------------------
Now... I hope some good coder out there could of fix the NPCItem.cfg thingy... which codes are included in HG 2.24b+
this work for u?

<a href='index.php?act=ST&f=54&t=6793&view=getnewpost' target='_blank'>index.php?...view=getnewpost</a>
<img src='http://www.playah.no-ip.com/images/Hypn ... imated.gif' border='0' alt='user posted image' />
[51LV3RY]
Regular
Posts: 48
Joined: Mon Aug 16, 2004 5:51 pm

Post by [51LV3RY] »

You rock dude, really! I'm gonna test the NpcItem.cfg code tomorrow it's 23.45 here... nice work & keep it up!
Audioslave
noob
Posts: 24
Joined: Sat Dec 25, 2004 2:40 pm

Post by Audioslave »

Image
I don't know why i got this error now :S. 2 or 3 hours ago i didn't got this error.. Hypno can you help me?
Hypnotoad
Member
Posts: 100
Joined: Wed Apr 28, 2004 8:16 pm

Post by Hypnotoad »

Audioslave wrote: I don't know why i got this error now :S. 2 or 3 hours ago i didn't got this error.. Hypno can you help me?
its not a bug damnit its just debug messages so i can track errors more easily. If it says send message that means a message was sent to hgserver,mainserver, gate. If it says recieve message a message was recieved hgserver,mainserver, gate.
<img src='http://www.playah.no-ip.com/images/Hypn ... imated.gif' border='0' alt='user posted image' />
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

Hey Hypno great work! That was a very quick release.. I just finished coding a new dialog for the WL because I think some tool dialogs could help manage a server better.

Heres the new main dialog
<a href='http://img63.imageshack.us/img63/5994/w ... ver3no.jpg' target='_blank'>Image</a>

I kept the old "dialog" process but it's hidden. It has no visible functionality only handling the core windows messages and the deconstruction of the app. I coded it like that because the server message process has issues when being combined with the dialog messages.

Anyway all i've done is automatic activation and a new main dialog. I was thinking of dialogs to help users with editing/updating cfg's, accounts and characters. Any suggestions/feedback is appreciated.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

izzit winapi or resource dialogs?
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

Drajwer wrote: izzit winapi or resource dialogs?
Resource dialogs.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

// can cause hgserver to crash because of this packet packet size!!!
// need to make fix in hgserver in regards to MSGID_RESPONSE_PLAYERDATA's dwSize
// eg if (dwSize > BUFFER) return; or something this is extremely exploitable
// all you have to do is send a huge txt file or packet to the server and crash

  cp2 = new char[dwFileSize+1];
  ZeroMemory(cp2, dwFileSize+1);
  fread(cp2, dwFileSize, 1, pFile);
Interesting this might be what's crashing my HGServer lately... :)

Check it up in Developer's Corner :rolleyes:
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
sokol
Loyal fan
Posts: 228
Joined: Mon May 02, 2005 7:28 pm
Location: P(r)oland

Post by sokol »

Nice one!!!! Great job ! :P <3
Maxis
Regular
Posts: 51
Joined: Tue Apr 04, 2006 4:47 pm

Post by Maxis »

Nice work ^^ do you give me link. I cant download this :/
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

Maxis wrote: Nice work ^^ do you give me link. I cant download this :/
<a href='http://www.mysharebox.com/dl.php?key=68 ... ue&p=54327' target='_blank'>here you go</a>
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Post Reply