item4.cfg - how?...

Discussion about Helbreath Server Files.
Post Reply
lirannn
Regular
Posts: 56
Joined: Fri Sep 08, 2006 7:17 pm

Post by lirannn »

my item1-3.cfg gets full and i cant add any new items...(file gets too big)

i know theres a way to add item4.cfg,but how do i make my server read it?

is it somewhere in hg source?
<span style='color:green'>Danny says:u dont know how much u can make from weed ,make any item of clothing. im fucking serious, real good ropes!</span><br><br>Helbreath reborn, be there;)<br>owner of hbr.
Sprint
Spamtastic
Posts: 1000
Joined: Tue Jun 06, 2006 6:59 am
Location: Far from home
Contact:

Post by Sprint »

double post remove one(wich i could do it :) )
<span style='color:blue'><span style='font-size:19pt;line-height:100%'><u><b>FUCK Helbreath!</b></u></span></span><br><br><span style='color:gray'><a href='http://www2.analystica.com/users/anttu/online/ngd' target='_blank'>ngdnetwork</a> OFFICIAL WEBSITE OF Northern Game Developers. Do visit! (THEY ARE UP!)<br><a href='http://project3d.x.am' target='_blank'>Project3d development forum</a> plz join and discuss,develop,give ideas,feedback. Anything goes as long it helps the project!</span><br><br>Zepto Znote 6625WD: 1.8Ghz dual core, 2GB, 512mb graphics card(dedicated), 160GB HDD<br><img src='http://www.signaturebar.com/uploads/images/10111.jpg' border='0' alt='user posted image' /><br><img src='http://www.signaturebar.com/uploads/images/13229.jpg' border='0' alt='user posted image' /><br><img src='http://www.signaturebar.com/uploads/images/8852.png' border='0' alt='user posted image' />
Orkl
Loyal fan
Posts: 376
Joined: Sat Sep 17, 2005 2:31 pm

Post by Orkl »

lirannn wrote: my item1-3.cfg gets full and i cant add any new items...(file gets too big)

i know theres a way to add item4.cfg,but how do i make my server read it?

is it somewhere in hg source?
Its done in the world-log-server source.. Tutorial below...


->>WorldLog.cpp

FUNCTION:

Code: Select all

bool CWorldLog::bInit(void)
FIND:

Code: Select all

	if (bReadItemConfigFile("WLConfig\\item.cfg") == FALSE) return FALSE;
	if (bReadItemConfigFile("WLConfig\\item2.cfg") == FALSE) return FALSE;
	if (bReadItemConfigFile("WLConfig\\item3.cfg") == FALSE) return FALSE;
ADD:

Code: Select all

if(bReadItemConfigFile("WLConfig\\item4.cfg") == FALSE) return FALSE;
Depends what WLSource you got...

Haven't tried it, but it SHOULD work.. Any problems post here i'll try follow up
<!--QuoteBegin-crazymnig88+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (crazymnig88)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->by notepad??? it didn't show any code, just show words wif no mean<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin-charlie+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (charlie)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->he'll probably save it as 600pagebook.bmp<br><br>400gb file plzkthnx<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

Orkl wrote:
lirannn wrote: my item1-3.cfg gets full and i cant add any new items...(file gets too big)

i know theres a way to add item4.cfg,but how do i make my server read it?

is it somewhere in hg source?
Its done in the world-log-server source.. Tutorial below...


->>WorldLog.cpp

FUNCTION:

Code: Select all

bool CWorldLog::bInit(void)
FIND:

Code: Select all

	if (bReadItemConfigFile("WLConfig\\item.cfg") == FALSE) return FALSE;
	if (bReadItemConfigFile("WLConfig\\item2.cfg") == FALSE) return FALSE;
	if (bReadItemConfigFile("WLConfig\\item3.cfg") == FALSE) return FALSE;
ADD:

Code: Select all

if(bReadItemConfigFile("WLConfig\\item4.cfg") == FALSE) return FALSE;
Depends what WLSource you got...

Haven't tried it, but it SHOULD work.. Any problems post here i'll try follow up
you left off a few parts

find

void CWorldLog::ClientRegisterGameserver(int iClientH, char * pData)

inside that add

Code: Select all

!bSendClientConfig(iClientH, "WLConfig\\Item4.cfg") || {
and find

bool CWorldLog::bSendClientConfig(int iClientH, char *cFile)

inside add

Code: Select all

else if (strcmp(cFile, "WLConfig\\Item4.cfg") == 0) {
  dwMsgID = MSGID_ITEMCONFIGURATIONCONTENTS;
	}
lirannn
Regular
Posts: 56
Joined: Fri Sep 08, 2006 7:17 pm

Post by lirannn »

thnk,will try l8er
<span style='color:green'>Danny says:u dont know how much u can make from weed ,make any item of clothing. im fucking serious, real good ropes!</span><br><br>Helbreath reborn, be there;)<br>owner of hbr.
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

lirannn wrote: thnk,will try l8er
it's simple just look at the other item cfgs in the source and follow in order how their put in and thats it.
Orkl
Loyal fan
Posts: 376
Joined: Sat Sep 17, 2005 2:31 pm

Post by Orkl »

Oh, thanks crossfade, I didn't spend too much time looking at it :D
<!--QuoteBegin-crazymnig88+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (crazymnig88)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->by notepad??? it didn't show any code, just show words wif no mean<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin-charlie+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (charlie)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->he'll probably save it as 600pagebook.bmp<br><br>400gb file plzkthnx<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

I'll release Hypno's WLS with up to 10 cfg's. So noobs can add all their items. >.> And Sources...
Orkl
Loyal fan
Posts: 376
Joined: Sat Sep 17, 2005 2:31 pm

Post by Orkl »

ADDKiD wrote: I'll release Hypno's WLS with up to 10 cfg's. So noobs can add all their items. >.> And Sources...
Nice, saves me the work :)
<!--QuoteBegin-crazymnig88+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (crazymnig88)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->by notepad??? it didn't show any code, just show words wif no mean<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br><!--QuoteBegin-charlie+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (charlie)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->he'll probably save it as 600pagebook.bmp<br><br>400gb file plzkthnx<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd-->
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

ADDKiD wrote: I'll release Hypno's WLS with up to 10 cfg's. So noobs can add all their items. >.> And Sources...
keep in mind that releasing it will help them but they will still ask about the other bugs in the source if you or they with the source fix. if you fix it and add in the cfgs they probally will love you but if you dont and leave it to them, then they will come here and probally start bitching.
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

I only give out Compiled Shit, I don't have sources out. If you looked at my Signature. You have an explanations. =) I love KLKS.
Post Reply