An essential info site for anyone learning the game. Great community and often very insightful posts.
 
HomeUseful information for Helbreath beginnersPlay, discover, and broadcast your Helbreath moments for free.Statistics overviewSearchMemberlistRulesRegisterLog in
 

 [SRC+FILES] HGServer-Client-Files

Go down 
Go to page : Previous  1, 2, 3, 4, 5, 6  Next
AuthorMessage
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Centuu.-

Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 999105/12/2017, 8:15 pm

First topic message reminder :

Hi, i'll share some files that i've been modifying, just basic things..

HGServer sources v3.0 by HBx Team
Client sources v3.82 by snoopy81, diuuude & Cleroth
Updater by LifeX

FEATURES:
 

TODO LIST:
 

CHANGELOG:
 

IMAGES:
 



>> GitHub Link <<

Join our Discord to test the files !
[url=https://discord.gg/YEA45bA]>> Discord << [/url]  (05/24/2020)


binarydata » Wed Apr 06, 2005 8:14 pm wrote:
hb dead anyways


Last edited by Centuu.- on 4/1/2020, 3:12 pm; edited 52 times in total
Back to top Go down

AuthorMessage
TSP



Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/16/2019, 8:04 am

Now I'm getting https://i.imgur.com/XkilNRq.png

So that doesn't help either. Anyway... No time left for today. Guess I'll try again tomorrow but I'm feeling very hopeless over this.

Why can't it just work?!
Back to top Go down
sleeq



Posts : 21

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/16/2019, 8:06 am

Remove the space between the < and > so it will look like this
Attachments
[SRC+FILES] HGServer-Client-Files - Page 2 Attachment1.jpg
You don't have permission to download attachments.
(5 Kb) Downloaded 15 times
Back to top Go down
TSP



Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/16/2019, 8:09 am

There is no < or > in that line at all.

Can anyone just upload both a client and a server source that I can just compile in VS2019 or VS2010 without having to edit anything that may or may not work? I just want to compile the files, edit the ini's to set up the IP's and just... run it and play?

That's all I'm looking for. How did all of you manage to compile all of this anyway?!

Edit: now I see your attachment. It looks like "" instead of < and > in VS2019... At least in the files the two admins recommended me to download.


Edit2: I didn't read the part of replacing it with windows.h... I'm so sorry. Guess I really just let my emotions get the better of me.


Last edited by TSP on 10/16/2019, 8:14 am; edited 1 time in total
Back to top Go down
sleeq



Posts : 21

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/16/2019, 8:12 am

Extract this into the HGServer source folder and you should be fine compiling it afterwards

This


Last edited by sleeq on 10/16/2019, 8:15 am; edited 1 time in total
Back to top Go down
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎


Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/16/2019, 8:14 am

It's complicated, yes... I understand. In my case, I work programming. Now I'll compile them for you and upload to the Drive.
Back to top Go down
TSP



Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/16/2019, 8:17 am

Repeating my last edit since you posted after my edit:

Edit2: I didn't read the part of replacing it with windows.h... I'm so sorry. Guess I really just let my emotions get the better of me.

you're right, I managed to compile it now. Now I have the "files.rar" from one admin extracted into my client folder so that one runs, but now I don't know what to do with this exe. The original server files that were uploaded on the gdrive aren't there anymore. I need those files for this server to work, right?
Back to top Go down
TSP



Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/16/2019, 8:19 am

[You must be registered and logged in to see this link.] wrote:
It's complicated, yes... I understand. In my case, I work programming. Now I'll compile them for you and upload to the Drive.
Thank you too. If you leave them uncompiled but possible to be compiled with just a F5 press in VS2019 (I think this was your original intention with these files or sysetm?) that would also be great. I'm okay with learning but it's quite a leap of faith to go from no knowledge to troubleshooting issues.


Edit: time for me to head off to work, I'll only have time to try again tomorrow. Thank you both for the advice and hopefully I can manage to get it to work tomorrow.
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎


Posts : 197

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/16/2019, 12:30 pm

I dont understand your problem TSP. I have done everything for you, not sure what you are planning to do bro.

I put all the CONTENTS,SOUND and SPRITES and the compiled Client.exe inside Files.rar for you, you just need edit the login.cfg inside CONTENTS folder then you are good to go.

@Centuu, I think I upload those files, others cant see it except for you and me I guess.
Back to top Go down
QuestioN



Posts : 31

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/16/2019, 1:49 pm

el server y los link andan perfectos. yo pude descargar todo, inclusive los archivos que subio LifeX con los fix recientes y todo anda bien.
entre recien y aca dejo una imagen que estan todos.
[You must be registered and logged in to see this image.]
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/16/2019, 4:39 pm

Thanks lifex. The client will probably work fone as will the hgserver now. But the files of the worldlogserver.exe and the other ones (gate server and another one i think) are invisible or removed on the drive.
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 197

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/16/2019, 8:17 pm

Here you go.

This is the updated server files that fix the auto skills.
Attachments
[SRC+FILES] HGServer-Client-Files - Page 2 AttachmentServer Files.zip
You don't have permission to download attachments.
(2.7 Mb) Downloaded 8 times
[SRC+FILES] HGServer-Client-Files - Page 2 AttachmentServer Files.zip
You don't have permission to download attachments.
(2.7 Mb) Downloaded 8 times


LifeX


Last edited by LifeX on 10/19/2019, 7:56 am; edited 1 time in total
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/17/2019, 12:52 am

Thank you very much. Ill be trying to get this to work in about an hour. Ill keep you up to date on the progress.
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/17/2019, 2:10 am

So, I think I did everything right but let me just tell you what I did so you can double check me:

1. edited gateserver.cfg, HMLserver.cfg, WLserver.cfg and all the *.cfgs in all \gameserver\ to make sure all the IP's match my IP.
2. Made sure that I copied hgserver.exe into each of the directories inside the \gameserver\ directory
3. opened ports in my router
4. started up gateserver.exe, MainLserver.exe (and pressed home), WorldLserver.exe (and pressed home)
5. then start up HGserver.exe in one of the directories. I get an error now:

[You must be registered and logged in to see this link.]


Just as an FYI; I used LifeX's server files. The file in the log that's erroring out seems to be not in this zip/extracted folder (DupItemID.cfg).

Am I doing something wrong here? I think I'm on the right track. Unlike the server files that I tried from other servers (i.e. oxy) had all those \gameservers\ folder combined into one folder only, but I assume I should still be OK if I open all hgserver.exe separately like I'm trying to, right? i.e. middlelands\hgserver.exe; \aresden\hgserver.exe; etcetera.

Getting hopeful.
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/17/2019, 2:13 am

Here's the full logging. Everything else seems ok except that error right? or is the "not responding!" part not part of the error of DupItemID.cfg missing?

[You must be registered and logged in to see this link.]
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/17/2019, 4:24 am

I copied a DupItemID.cfg from a different server file (Probably will cause issues right? I'd love the file that's actually needed for this one. Or can it just be an empty file?)

When I try to start a HGserver.exe, I now get this NPC error message:
[You must be registered and logged in to see this link.]

Did I do something wrong? Is everything else in the older posts still set up properly?

Edit: I'm being a dumbass. I edited the npc.cfg file myself (i wanted to reduce the XP that monsters give because this file seems to be edited by someone/deviating from "normal" (i.e. dummies giving 50K exp). I think I did the edit wrong, as it gave the NPC error. So i tried to put back the original NPC file that came with your rar, but I accidentally copied from a wrong file!

So, this seems to be working with your settings. However, I'd still like to edit the npc files to be more true to the original, but I guess I'm doing something wrong. Some tips here? meanwhile, I'll see if I can get the client to work!


Edit2:

1. I managed to log in the game! I get a lot of noise regarding learning skills (I guess skills are set to 100%? Can I just edit my char file to set it back to 0% and just slowly learn them up to 100%? I would like to just start at 0% but if editing the char file works then that's ok with me too)

2. I seem to log out after 1 second or so? I get this message: https://i.imgur.com/1hslvNN.png
Does it kick me out for some reason?

Edit3: If there's something wrong with the compiled version of the client, could you tell me what to do to make the source files of the client compile-able in VS2019? And then what to change to what to make it not auto-log-off or what it is doing? Thanks!

I tried to compile it with VB6.0 that was on your site but that also errored out on compiling with a whopping 100+ errors so I guess that is even worse than VB2019 :P

I get the feeling I'm really close to being able to get this done but I think I'm at a dead end for now. Help is really appreciated!
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/17/2019, 10:53 am

I am starting to suspect that me getting 100% in most (all?) skills is getting me booted, but I have nothing to back that up. I tried just editing the char to 0 skills but I automatically got set to 100% skill levels again. [You must be registered and logged in to see this link.] could you perhaps set it so that skills aren't set at 100%, aside from double checking what I tried so far in case I'm in the wrong here and there's some other reason this isn't working? Thank you so much in advance!

Edit: Going into gameconfigs.cfg I was able to set the maximum skill value from 700 to 7000 and that prevented the game from booting me out! I can now actually move around and play the game.

I would love to:
Have severely reduced exp values. I guess I can solve that by setting it to LOW? it's a bit extreme!

max level changes... is it going to be tricky to set it to 475/700? I can't seem to compile anything due to the mentioned errors in VS2019 aside from the fix that the other person provided me with the change. 

And start with skills at 0% so I can level them up? Thank you all for the help so far!

But I have no idea where to begin. Still, this is a serious boost!
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 197

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/19/2019, 7:43 am

TSP, I forgot about the 700 max skills thingy, that is my mistake. 

For you to change to 475/700 it would be tricky, as you need to change 3-4 things in hgserver and client, then the exp multiplier for all NPC because the NPC exp is meant for 200/200.

Download Team Viewer and PM me the id and pw of teamviewer. I will help you setup the vb6.0, for you to edit the source file on your accord, best you make back up every time you wanna edit something in the source. And also to fix your skills and also the exp.

After that you should be able to play accordingly. To change the level and stats, you need to venture on your own because Centuu release this files as a 200/200, if he is willing to change it for ya, then its up to his decision.


LifeX
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/19/2019, 8:07 am

Hey LifeX,

First off, I want to thank you for helping me out here. Sadly, I share the pc with my girlfriend, there's important work related stuff on it. So I can't really permit remote access even if it is secured, she trusts me with it.

However, it wouldn't bother me if i have to reinstall server files that you upload here. I got it working perfectly now after all so I am happy with just those alterations that I would have liked!

I figured out how to edit npc's and thus their exp values. So that wont be needed by centuu either I think.

Would you be okay with that? Eventually Id like to take a peek at the sources and edit them perhaps or learn about the code/coding. So ideally it would be awesome for the files to be vs2019 compatible, but that part is totally optional.

But the 475/700 and no 100% skills would be awesome! Thank you so much for the help so far, having a good trip through memory lane!
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 197

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/19/2019, 8:17 am

Remote access would be permitted or done, when you are in front of the PC of course, In any case I am unaware of the directory, or files, i normally write on a notepad in front of the screen for you to read.

In any way if you think I am violating which I have no interest with, you can close the TV connection. But anyhow the choice is your's entirely.

Good luck with the server files.


LifeX
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/19/2019, 10:24 am

I do feel a bit uncomfortable about it, I'm sorry. Am I correct in assuming you'd rather not just pass me the edited files instead? That would be much preferred for me. Regardless, I thank you for your help, with which without I'd very likely not have been able to make this work in the first place!
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 197

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/19/2019, 12:10 pm

Like what Centuu mention, everyone have to learn.

I can't help someone who doesn't seem to want to help themselves. Good luck.


LifeX
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/21/2019, 6:14 am

[You must be registered and logged in to see this link.] wrote:
Like what Centuu mention, everyone have to learn.

I can't help someone who doesn't seem to want to help themselves. Good luck.
Thank you.

I managed to compile pretty much every source in the HB files lists on this forum aside from the one in your google drive, using VB6. Specifically, it errors specifically related to MP3 statements, so I assume those are experimental features? I can manage to compile HGserver and client files of oxy, cordoba, legion and santana. I haven't tried more.

I hope you are pleased with those results. I couldn't find a source of your server files on your drive (Hidden/viewable only by you?) so I couldn't try those out.

If you manage to share those files and fix the mp3 issues (maybe I should just omit those lines?) are you willing to help me out from that point on without remote desktop, considering I hopefully showed you some willingness and persevereness from myself? I'm pleased with being able to get VB6 to work properly with all the other source files which wasn't possible before.

Error log: https://i.imgur.com/62COgGD.png

p.s. the client.rar that you have on the drive has files in them (Think Centuu tried this to help me a week ago) that were detrimental to compiling cximage and jpg library because they have cached files in their build directory that would only work on his PC. Emptying the build directories of those files allowed me to get past of all of those errors and am left with only the few I showed in the link above. I'm quite happy with the result I'm making considering how little I know about all of this.

Hope I didn't disappoint this time.
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 197

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/21/2019, 8:11 am

I found the reason why you are still having issues, even after I fix them. Centuu have uploaded and replace my fixes with the old source. Hence the tremendous amount of error and issues.

I am not sure is it because the files I uploaded can't be viewed by all, or Centuu uploaded the wrong source.

This is the Server Files, with the compiled HGServer inside GameServer. And Also the HGServer source, all using VB6.0 to compile.

Next post will be the Client Source, and also the Client Files that is needed to play the game.
Attachments
[SRC+FILES] HGServer-Client-Files - Page 2 AttachmentServer Files.zip
You don't have permission to download attachments.
(2.7 Mb) Downloaded 21 times
[SRC+FILES] HGServer-Client-Files - Page 2 AttachmentHGServer.zip
You don't have permission to download attachments.
(1.2 Mb) Downloaded 19 times


LifeX
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 197

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/21/2019, 8:15 am

This is the Client Source, and also the Client FILES to play the server.
Attachments
[SRC+FILES] HGServer-Client-Files - Page 2 AttachmentClient.zip
You don't have permission to download attachments.
(4.9 Mb) Downloaded 28 times
[SRC+FILES] HGServer-Client-Files - Page 2 AttachmentFiles.zip
You don't have permission to download attachments.
(26.1 Mb) Downloaded 28 times


LifeX
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/21/2019, 8:37 am

Thank you! That was exactly what I was looking for; the client src and hbserver src were missing from the drive.

I was able to successfully compile the client! I assume changing DEF_MAX_LEVEL and DEF_STATS_LIMIT in both the client and hgserver will make it work just fine? I see a config file too, I'll edit it there too, just to be sure.

Will there be any issues in terms of technical difficulties if I change these too high? The high rates servers never seem to go higher than 475/700; This is overkill in the first place for the default npc settings I think; but it's good to know what the limits would be, especially if I'd add in npcs.


I noticed in the few days that I played last week that some enemies seem to drop some things consistently but other items rarely. i.e. if I edit the settings.cfg to drop rates of primary 10/secondary 20/rares 10, the Demon enemy drops Capes very frequently but almost never (or never? I didn't kill THAT many (200-300)) any other item aside from gold which seems to be guaranteed.

Do I have to check and edit loot tables for all the creatures to make the drop rates/loot tables line up with how it used to work in the "retail" version of the game? Or was I just unlucky? :P

Anyway, enormous thanks for the help!


Edit: p.s. What should I change to make the gold drop rate (not value per drop) much lower so that items drop relatively regularly but gold drops less? I'm studying the source files now of hgserver so maybe I'll figure it out in the meantime myself, but it would be nice if I could tap into your fountain of knowledge.


Edit2: I also seem to have a guaranteed chance to hit. Even with just the base 10 dex and 0% skill I consistently hit enemies. Is this also true for enemies vs me? Is it possible to have it be the traditional "dex + hit prob vs dex + defense"?
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/22/2019, 3:13 am

If I understand it correctly, this is wrong:

HGServer source:
game.cpp, line 44061:  if (iDice(1,10000) <= m_iGoldRate) { // Centuu : Agregado para controlar el drop de oro.

I can't read the spanish but, this value should be >= and not <=, because the current setting causes the gold drop rate to be inverse (i.e. "low gold drop rate" actually causes a whole lot more drops than "high gold drop rate") Correct me if I'm wrong. still wrapping my head around this. I am suspecting similar things to other drop rates.

Edit: Further down the line this happens again with primary and secondary drop rates AND rare drop rates. Also, some secondary drop rates are affected by primary drop rates in that, say, "halving" the values for the primary and secondary drop rates in settings.cfg doesn't actually mean that both primary and secondary items both drop twice as often. In fact, the opposite is true.


line 49734: if (iDice(1,10000) <= m_iRareDropRate) { // MORLA 2.6 - Rare droops

So if you set rare drop rate to a value of 10 (lower value is supposed to INCREASE drop rates!) then you only have a 0.009% chance of a rare drop. So you have to change that part to >=. It is declared properly to be >= further above this line. Having certain inverse effects like the code has now (>= somewhere and <= later) means that some things can never ever happen!


Line 37919:  if (iDice(1,100) < m_iRareDropRate/100)

Is another counter-intuitive statement. If lower values for raredroprate increase the odds of a rare item dropping, then why would a value like this severely reduce the odds of it being a good item? i.e. if i have a rare drop rate of 10 then idice will ALWAYS be higher than m_iRareDropRate and never ever adjust rare item value. i.e. raredroprate of 100 in settings.cfg which is a very high drop rate for rares (or supposed to be...) will only yield a 1% chance to increase rare item value! While a raredroprate of 10.000 (Almost impossible to drop a rare) will guarantee it to be increased in value. It is inverse to the intent of increasing drop rates.


The same can be said for primary drop rates vs gold. The higher the primary drop rates, the higher (relative to primary drop rates!) gold drop becomes. The closer primarydroprate becomes to being guaranteed, the larger the odds are of it being gold instead of a primary item. This has a compounding effect on the secondary drop chance as well because that's linked to primary drops.



My proposal: Have all drops be separate from each other. That way they cannot interfere with each other based on individual drop rates.
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/22/2019, 4:54 am

So far I've not been able to properly increase stat points per level. I manage to set both hgserver and client to give 6 stat points per level, and they are perfectly fine assigned on levelup. But when I leave the game and log back in, I get immediately disconnected saying "Connection lost!" I assume there's a setting that calculates the stat points you're supposed to have and I have altered several but I assume I'm missing one. Does anyone have any idea?

Edit: or is it perhaps a different server that checks the stat points that we don't have the source of?
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 197

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/22/2019, 5:28 am

As i explained, to change level and stats take more then just changing those settings and numbers inside HGServer.

You need check the antihacks where they disconnect you for having more then you suppose to get. Because HBServer itself is always 3 stat points per level, hence those who dont know how to figure it out always go 475/700 because that way you dont need to change the stats points. There are numerous places to change the stats points from 3 to 6 per level.

And also drop rate, it really depends on how you want to set it up, either change from source itself or outside in Settings.cfg. There are technically four different kind of drops.

1) Pot / Gold.
2) Armor / Weapon
3) Rares
4) Boss Drops

I dont have source with me, not sure what is the common Function Name as I change the function name in my own source.

My drop function is called, NpcKillDrops, BodyDisappearDrops, and BossDrops, i dont rmbr the common function name.

Good luck.


LifeX
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/22/2019, 5:35 am

Thanks LifeX, I started to figure out the hack-prevention stuff. It's fun to study and look at the code. It's definitely disrespectful with some of the comments in the code "retarded korean code" for example. Guess that's what happens when the source gets passed along many different types of people.

I managed to change all the codes in hgserver to make sure it gives 6 points and my client accepts that, too. With a lot of trial and error, I found out that the client is okay with getting 6 points per level, but when I assign only 3 points, log back out and back in, the client will say it has only 0 points left (So those 3 points disappeared.)

I am right now assuming that adding in all 6 points will cause the client to re-evaluate the points on log-in and would display a < 0 value and thus boot me out. I'll keep trying.


Edit: I managed to make it work!  :bueno:
Back to top Go down
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Centuu.-

Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/22/2019, 8:59 am

Great! It's nice to see how much you learned in short time. Keep working and we'll be glad to see your server online soon!


binarydata » Wed Apr 06, 2005 8:14 pm wrote:
hb dead anyways
Back to top Go down
Yingo

avatar

Posts : 12

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/22/2019, 11:22 pm

Centuu podrias subir HGServer sources v3.0 by HBx Team
Back to top Go down
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Centuu.-

Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/23/2019, 9:13 am

[You must be registered and logged in to see this link.] wrote:
Centuu podrias subir HGServer sources v3.0 by HBx Team

El source Base o el mío editado?
Back to top Go down
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Centuu.-

Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/23/2019, 9:14 am

[You must be registered and logged in to see this link.] wrote:
I found the reason why you are still having issues, even after I fix them. Centuu have uploaded and replace my fixes with the old source. Hence the tremendous amount of error and issues.

I am not sure is it because the files I uploaded can't be viewed by all, or Centuu uploaded the wrong source.

This is the Server Files, with the compiled HGServer inside GameServer. And Also the HGServer source, all using VB6.0 to compile.

Next post will be the Client Source, and also the Client Files that is needed to play the game.

My mistake :LOL: :
Back to top Go down
Yingo

avatar

Posts : 12

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/23/2019, 8:53 pm

Centuu mil disculpas, no había leído los comentarios de LifeX, ya con esos Files me sirvió, pido nuevamente disculpas por no leer :B
Back to top Go down
QuestioN

avatar

Posts : 31

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/23/2019, 11:54 pm

ya no da errores al compilar los Source Client y del HG, pero si da error al querer levantar el servidor arrojando el siguiente mensaje STOPPED! POTION configuration error, ya que si alguien intenta bajarlo y no sabe como solucionarlo no podra usar los files.
Otra cosa, queria preguntar el porque estos files al usar la la ip 127.0.0.1 el servidor levanta, pero al intentar ingresar da conexion lost el cliente. he usado muchos files diferentes y nunca tuve este error. Si alguien me puede sacar esa duda. Gracias
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/24/2019, 1:50 am

I cannot read Spanish and google translate doesn't always work on this site (As in this case, too). So my apologies if my answer isn't what you're looking for.

The potion configuration error is incorrect unless you actually meddled with that configuration file. The problem is actually as follows:

The server files do not come with a DupItemID.cfg file, but hgserver needs that file. You can just create an empty txt file and rename it to DupItemID.cfg. Make sure DupItemID.cfg is in the same folder as GateServer.exe/MainLServer.exe/WorldLServer.exe

If you did it correctly, you won't get a potion configuration error message anymore.
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 197

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/24/2019, 7:56 am

I have never used DupItemID,cfg inside the server files, why would it be needed?

I use the file that I provide with no issues.


LifeX
Back to top Go down
QuestioN

avatar

Posts : 31

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/24/2019, 2:41 pm

El archivo ya se encuentra dentro de la carpeta del servidor y sigue dando ese error al ejecutar el hg (no levanta) Use los archivos que subió lifex, compile tanto el client como el hg y al intentar levantar el servidor en el hg tira ese error.
Back to top Go down
Yingo

avatar

Posts : 12

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/24/2019, 4:06 pm

Hernan34 descargar los Files que subio Centuu 
[You must be registered and logged in to see this link.]

encontraras el block de notas DupItemID.cfg, agregalo a la carpeta del server y listo tiene que funcionar
Back to top Go down
QuestioN

avatar

Posts : 31

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/24/2019, 9:24 pm

si Yingo ya lo resolvi, gracias! Pasa que tengo una version anterior del servidor donde estaba ese archivo y otras cosas mas, y a medida que se fueron actualizando (arreglando ciertos problemas) empezaron a aparecer otros problemas como que daba error al compilar el cliente y demas, y el server q subio LifeX no esta ese archivo (raro porque el estuvo trabajando sobre los mismos files) y que necesita el server para upear. Ya lo tengo funcionando.
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/25/2019, 5:56 am

Where can I find the experience table for leveling up? I'd like to reduce the curve a little bit. So far I found:

iExp
DEF_MAXEXPTABLE (value of 3500)
m_iLevelExpTable

But I wasn't able to find any concrete formula or set leveling list (i.e. "exptolevel = prevlevelexp *1.1") I I tried to be thorough but I've reached a dead end here I think.

Edit: Of course I see the level-chart in the server files, but editing that doesn't seem to change anything.
Back to top Go down
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Centuu.-

Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/25/2019, 7:52 am

iGetNextExpLevel


binarydata » Wed Apr 06, 2005 8:14 pm wrote:
hb dead anyways
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/25/2019, 7:58 am

[You must be registered and logged in to see this link.] wrote:
iGetNextExpLevel
Searching for 'iGetNextExpLevel'...
Cannot find the string 'iGetNextExpLevel'.

Using the search function to search everywhere in the hgserver source or client source. Do you perhaps have the file/line where I can see/edit the formula? i.e. game.cpp, line 1 ?
Back to top Go down
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Centuu.-

Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/25/2019, 8:17 am

[You must be registered and logged in to see this link.] wrote:
[You must be registered and logged in to see this link.] wrote:
iGetNextExpLevel
Searching for 'iGetNextExpLevel'...
Cannot find the string 'iGetNextExpLevel'.

Using the search function to search everywhere in the hgserver source or client source. Do you perhaps have the file/line where I can see/edit the formula? i.e. game.cpp, line 1 ?

I'm sorry, this is the function:

Code:
long CGame::iGetLevelExp(int iLevel)
{
 unsigned long iRet;
   
   if (iLevel == 0) return 0;
   
   iRet = iGetLevelExp(iLevel - 1) + iLevel * ( 50 + (iLevel * (iLevel / 17) * (iLevel / 17) ) );

   return iRet;
}

It returns the specified exp for determined level.
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/25/2019, 8:33 am

[You must be registered and logged in to see this link.] wrote:
[You must be registered and logged in to see this link.] wrote:
[You must be registered and logged in to see this link.] wrote:
iGetNextExpLevel
Searching for 'iGetNextExpLevel'...
Cannot find the string 'iGetNextExpLevel'.

Using the search function to search everywhere in the hgserver source or client source. Do you perhaps have the file/line where I can see/edit the formula? i.e. game.cpp, line 1 ?

I'm sorry, this is the function:

Code:
long CGame::iGetLevelExp(int iLevel)
{
 unsigned long iRet;
 
 if (iLevel == 0) return 0;
 
 iRet = iGetLevelExp(iLevel - 1) + iLevel * ( 50 + (iLevel * (iLevel / 17) * (iLevel / 17) ) );

 return iRet;
}

It returns the specified exp for determined level.
Aaah thank you, that's exactly what I was looking for!

By the by, what was the train for thought behind adding spell damage attributes to melee weapons? i.e. esterks with "+5% damage to Energy-Strike"? Is there a way to cast spells while wielding these weapons? Or something else I'm missing?
Back to top Go down
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Centuu.-

Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/25/2019, 8:42 am

When you hit, it cast the spell and reduce mana. Simple as that. Magic items only appears in high drops or manufacture (high rare prob).


binarydata » Wed Apr 06, 2005 8:14 pm wrote:
hb dead anyways
Back to top Go down
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Centuu.-

Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/25/2019, 9:07 am

[You must be registered and logged in to see this link.] wrote:
[You must be registered and logged in to see this link.] wrote:
[You must be registered and logged in to see this link.] wrote:
[You must be registered and logged in to see this link.] wrote:
iGetNextExpLevel
Searching for 'iGetNextExpLevel'...
Cannot find the string 'iGetNextExpLevel'.

Using the search function to search everywhere in the hgserver source or client source. Do you perhaps have the file/line where I can see/edit the formula? i.e. game.cpp, line 1 ?

I'm sorry, this is the function:

Code:
long CGame::iGetLevelExp(int iLevel)
{
 unsigned long iRet;
 
 if (iLevel == 0) return 0;
 
 iRet = iGetLevelExp(iLevel - 1) + iLevel * ( 50 + (iLevel * (iLevel / 17) * (iLevel / 17) ) );

 return iRet;
}

It returns the specified exp for determined level.
Aaah thank you, that's exactly what I was looking for!

By the by, what was the train for thought behind adding spell damage attributes to melee weapons? i.e. esterks with "+5% damage to Energy-Strike"? Is there a way to cast spells while wielding these weapons? Or something else I'm missing?

You have to change it in the Client source too ! The function is in HG and Client.
Back to top Go down
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Centuu.-

Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/25/2019, 9:11 am

UPDATED

- Fixed Next-Exp for Majestic Levels (missed '+1')


binarydata » Wed Apr 06, 2005 8:14 pm wrote:
hb dead anyways
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/25/2019, 1:27 pm

I figured out that it needed to be changed clientside as well, thanks for reminding. The weapons that cast the magic... I didn't even try that as I thought it only changed the damage of your casts, not that it procs off weapon attacks! That's definitely very, very powerful. Can those attributes also appear on rare items or just statted items? Definitely going to try it out when I get back from the weekend with the family!

On another note; Some of the creatures cannot drop items at all. I think It was the ettin and mountain giant, maybe a few others here and there too. Was this a conscious decision or overlooked? Some of the default weapons also deviate from the original damage dices. I assume this was a conscious decision by whomever edited the source before you got your hands on it?

I also urge you to look for the drop rates, as the drop rate percentages are only accurate with the base settings. i.e. "dice 1.10000 < primarydroprate" will get greatly reduced chance of triggering the lower the settings go. It'd be much better as a "dice 1.(1 * primarydroprate) < primarydroprate" (Though I dont know the exact code to get what you (or they) originally intended.)

Just some tips, but I'd like to hear your thoughts behind it. Perhaps do it even more complicated, have increased drop rates reduce the chance of lower rolls (I.e. low PA values) and increase the chance of higher rolls. as a 0.1% chance on an item (or stat proc on item) drop as some of it is in the code is still going to be a <1% chance to drop per kill even with a rare rate of 1.

Just some food for thought.
Back to top Go down
Yingo

avatar

Posts : 12

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/25/2019, 9:09 pm

Centuu puede ser que a los block de notas de GateServer, HMLServer, WLServer le falten algunas lineas para upear el server y que entre gente??

originalmente trae esto el GateServer:

gate-server-port = 6502
build-date = 1126
game-server-list = 192.168.0.000

y viendo otros que son asi:

gate-server-address = IP interior
gate-server-port = 6502

game-server-list = IP interior
game-server-list = IP externa(internet ip)
game-server-address = IP interior
game-server-address = IP interior
game-server-port = 2101
build-date = 1126

game-server-list = IP interior
game-server-list = IP externa(internet ip)

permitted-address =IP interior
permitted-address = IP externa(internet ip)
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/26/2019, 3:24 am

You have set the game-server-list set erroneously to 192.168.0.000; thats not a valid ip address. Also, if I remember correctly, the gateserver will force itself on your internal ip address no matter what ip you told it to use. You can use that information to make absolutely sure you have set up the correct internal address. In case of virtual lans such as hamachi, it might try to listen to that. So just double check.

Furthermore, make sure you set the ports open in the router as the server files don't have upnp features. Good luck. I could help you more if you used English.
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 197

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/28/2019, 4:19 am

I strongly advise to change the function of iGetLevelExp because as you can see in the function, its a never ending loop. To avoid any memory lost, change the function name, and allow only 1 function to calculate and another to be called.

On TSP question, I answer below. Kindly mind my function name cuz i change my function name to suit me with that way so I know what I am doing. 

1. Magic Weapons if I am not mistaken does not have weapon damage but rather spell damage based on your Magic.cfg. I might be wrong as I dont have the source now, but yea. If what I say is true, regardless on what weapon it has the magic dmg, the weapon damage wont make any difference, hence having an Energy Strike Dagger and Energy Strike Devastator, wont make any difference. If I am not mistaken, the Magic Weapons stats is calculated and created in NpcDeadItemGenerator, which means it will be calculated and created upon normal drop weapons. If you want the rare weapons to drop those stats, you will need the same code of calculation and creation inside NpcDeadItemGenerator, and put into the rare items drop function, like DeleteNpc and also GetMultipleItem.

2.  What kind of items are you referring to? Give some examples. Pots? Gold? Sword with Stats, Armor with Stats? as you know, all these drops are inside one function. Then DeleteNpc is the mats and rare 2nd drop function. You need to see which drops you are referring to.

3. The dices are actually very easy, pardon me on this as my edited functions are different. What I can remember is that iDice is normally calculated either to 10000, or 30000 in HB. For Primary Drop Rate by default i think is 6500, and Secondary I think is 3000. From the formula you mention, iDice(1,10000) < m_iPrimaryDropRate. This means that under the RNG (Random Number Generator) is what HB is all about, if you kill 1 NPC, the RNG will calculate any number from 1-10000 ( thats why it is (1,10000). you cannot edit the minimum that is "1", BUT you can edit the "10000". So when PrimaryDropRate is 6500, which means out of 100% of drop rate, each npc u kill, you are getting a 65% chance that it has a drop, and the remaining 35% will be empty. If you would like a 100% drop rate for each npc kill, you change the 6500 to 9999. Think the number of 10000 = 100% and 6500 = 65%, that way it easier for you to gauge what Primary Drop Rate you would like. But the formula must used the sign "<". If you use iDice(1,10000) > 6500, it means the drop rate is now 35% and not 65% because of the ">" sign.

4. There is a code inside the item generator, that calculates the posibility of what stats is drop. similar to the answer I give in 3. Where it uses iDice too. There is alot of codes you need to understand. Like what code is for weapon, what code is for armor, and what code is for hp,mp,ma,pa,dr,mr. and which code is for hit prob, cad, and also code for ancient, critical, agile, sharp, strong, and those others, and in this particular source, the new Magic Weapon. And then you will need to interpret how the codes are send to client and how the client reads the code and display the text as Ancient GBH Hit Prob +7, or Strong Hauberk PA+30.

There is indeed alot to learn my friend. If you come from a programming background, you would pick it up, if not this will take a close 5-10 years for you to fully understand it. Having to learn C++ from HB is what got me to learn coding, now I know .NET, VB, C++, PHP, HTML5 all from my will to host and code Helbreath. I am sure you can too. :-) Keep it up.


LifeX
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/28/2019, 4:45 am

[You must be registered and logged in to see this link.] wrote:
2.  What kind of items are you referring to? Give some examples. Pots? Gold? Sword with Stats, Armor with Stats? as you know, all these drops are inside one function. Then DeleteNpc is the mats and rare 2nd drop function. You need to see which drops you are referring to.

Every monster has (or should have) a loot table that specifies what kind of items they can drop, right? So that you don't get Flamberge +2's from slimes. In the case of mountain giants and ettins (And some others) they are not part of those loot tables. I.e. they cannot drop daggers, or flamberges, or hauberks etc.

[You must be registered and logged in to see this link.] wrote:
Quote :
3. The dices are actually very easy

They are very easy. The issue isn't me not understanding it. The issue is that the code doesn't work anymore in certain values because the formula stops working. I'll give an example. This exists in the code of hgserver:

-------------------

if (iDice(1,10000) <= m_iRareDropRate) { // MORLA 2.6 - Rare droops

This piece of code is supposed to increase the rare drops the lower the value is (as with primary and secondary drops). However, you can clearly see it shows < instead of the supposed >.

-------------------

 if (iDice(1,10000) >= m_iPrimaryDropRate) {
     // 35% Drop 60% of that is gold
     // 35% Chance of drop (35/100)
     if (iDice(1,10000) <= m_iGoldRate) { // Centuu : Agregado para controlar el drop de oro.
           iItemID = 90; // Gold: (35/100) * (60/100) = 21% 




This piece of code is supposed to reliably drop entities (gold, items) on a specific chance. i.e. "If something drops, then 60% of those drops should be gold" however, if you change the m_iPrimaryDropRate value in the CFG, then suddenly the gold drop rate is no longer 60%. Say you have a primary drop rate of 10, then the code says "If something drops (Which is now very frequent), more than 99% of anything that drops, will be gold."

You would have to drastically alter m_iGoldRate to get back to the 60% and give all other entities a fair chance of dropping. But if you alter the primary drop value from 50 to 100 or back to 6500 then you have to go back and alter the gold drop rates again.

This is only the gold example, it's the same for weapons (Where melee weapons will drop while shields/armor/rares will stop dropping completely with certain primary/secondary drop rates that are supposed to drop lots more (i.e. value of 1000 or less)
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/28/2019, 4:58 am

Looking at the weapon code, it's not melee weapons that would constantly drop but wands:

// 1.4% chance Valuable Drop 60% that it is a Weapon
if (iDice(1,10000) <= m_iPrimaryDropRate) {
if (iDice(1,10000) <= m_iSecondaryDropRate) {
// 70% the Weapon is Melee

So if you set primary drop rate and secondary drop rate to 100 and 1000 respectively, melee weapons will almost seize to drop while other items will get a drastic increase. This is because m_iSecondaryDropRate and the primary version is a dynamic number (host can change the number) while the iDice is a strict 1 - 10000 range. The proposed % for drop rates (weapons, gold, armor) goes out the window when you chance the drop rate values. Therefore having a formula that is much more flexible is desired:


Code:
If <1 - 10000> is higher than (variable but set number anywhere between 1 - 10000)

when you want something to reliably trigger 60% of the time (Gold drop for example) is a bad formula.


Code:
If 1 - ((variable but set number anywhere between 1 - 10000) + 30%) = higher than (variable but set number anywhere between 1 - 10000)



Would make the code "drop-rate-value-editing-proof" and work as intended
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 197

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/28/2019, 6:15 am

From what I see based on your reply, you dont really understand what I explained. lol

Either way you can do whichever way you deem fit. HB was coded back in 1999, if you have sufficient knowledge to revamp it, by all means please do. Like I say, my codes and functions are slightly different as I first understood how HB RNG works before I implement my own codes into it.

If in any given time you can do that, kudos to you. Centuu source was meant for those with minimum knowledge to actually play it. 

Gonna clarify one last time on the functions.


Code:
if (iDice(1,10000) <= m_iRareDropRate)



I am not sure what is the number for the variable. I am assuming its declared as integer, it could go up to 65555. But at this point of iDice the max range is only 10000, so any fellow who puts more then 10000 in the Settings.cfg will have an error of the function not being called, which I assume that is what you meant. At this function, any RNG give up an variable number between 1-6500, the function of RareDropRate will be called, simple as that.



Code:
if (iDice(1,10000) >= m_iPrimaryDropRate) {[size=16][/size]
     // 35% Drop 60% of that is gold[size=16][/size]
     // 35% Chance of drop (35/100)[size=16][/size]
     if (iDice(1,10000) <= m_iGoldRate) { // Centuu : Agregado para controlar el drop de oro.[size=16][/size]
           iItemID = 90; // Gold: (35/100) * (60/100) = 21%

Then you have this. This formula uses > is because I assume the ppl who edit the source meant to have the primary drop rate to be the lesser then better. Because if PrimaryDropRate variable number is 6500, any RNG number MORE than 6500 then item will drop, hence the 35%, because the odds of getting variable number above 6500 out of 10000 is 35%. and looking further down, once the RNG variable number hits the 35%, then it will where your gold rate of 60% out of the initial 35% will be gold, and the remaining 40% of the initial 35% will be items ( which have another calculation of Armor, Pot, Zems, Weapon ( which sill separate again for Wand and Melee ). If you follow the trail you will be able to identify each function called when iDice is calculated which is by stages of the initial 35%.




Code:
// 1.4% chance Valuable Drop 60% that it is a Weapon[size=16][/size]
if (iDice(1,10000) <= m_iPrimaryDropRate) {[size=16][/size]
if (iDice(1,10000) <= m_iSecondaryDropRate) {[size=16][/size]
// 70% the Weapon is Melee


Then you have this code. The code signifies that weapon drops from the whole initial 35% item drop, is now 35% of whichever % that is left. It is not from the whole initial 35%. After RNG have hit that function of 35%, it will calculate the again, and based on the comments, I assume the SecondaryDropRate should be 3000, because if it hits the 70% or the 35% initial percentage of weapon drop, it will be a wand, and the remaining 30% of the 35% initial percentage of weapon drop, will be a range weapon which is sword, esterk and such.

I am in office now, I cant really draw a chart to let you know understand the drop understanding. Once I am home I could do that for ya.

You can change the sign < or > depending on how you want your code and settings to be. Its entirely up to your own deductions on how to set the settings via Settings.cfg without touching source.


LifeX
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/28/2019, 6:45 am

Alright, thank you for the information. I'll try to get through it. Some of it is a bit ambiguous for a newcomer like me but some of the comments in the files shed some light on it as well as you explanations. Cheers!
Back to top Go down
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Centuu.-

Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/28/2019, 7:55 am

[You must be registered and logged in to see this link.] wrote:
Centuu puede ser que a los block de notas de GateServer, HMLServer, WLServer le falten algunas lineas para upear el server y que entre gente??

originalmente trae esto el GateServer:

gate-server-port = 6502
build-date = 1126
game-server-list = 192.168.0.000

y viendo otros que son asi:

gate-server-address = IP interior
gate-server-port = 6502

game-server-list = IP interior
game-server-list = IP externa(internet ip)
game-server-address = IP interior
game-server-address = IP interior
game-server-port = 2101
build-date = 1126

game-server-list = IP interior
game-server-list = IP externa(internet ip)

permitted-address =IP interior
permitted-address = IP externa(internet ip)

No, así funciona bien. Fijate de tener abierto los puertos que utilices o el firewall desactivado.
Back to top Go down
TSP

TSP

Posts : 36

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/29/2019, 6:40 am

Hey Centuu, I'd like to request for you to re-check the npc.cfg's, item*.cfg's and the drop tables for monsters. Certain monsters are lacking drops like I mentioned before (ie just check giant frogs, they can't drop any weapons/armors for example as well as some others I previously mentioned.)

As for npc.cfg, it's definitely been tampered with. Just open it and look for the damage dice of the fire wyvern. 100% certain it's not supposed to deal 159990D18 damage. There are more instances of tampered npcs and other files.
Back to top Go down
Centuu.-
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Centuu.-

Posts : 228

[SRC+FILES] HGServer-Client-Files - Page 2 Empty
PostSubject: Re: [SRC+FILES] HGServer-Client-Files   [SRC+FILES] HGServer-Client-Files - Page 2 9991010/29/2019, 7:47 am

[You must be registered and logged in to see this link.] wrote:
Hey Centuu, I'd like to request for you to re-check the npc.cfg's, item*.cfg's and the drop tables for monsters. Certain monsters are lacking drops like I mentioned before (ie just check giant frogs, they can't drop any weapons/armors for example as well as some others I previously mentioned.)

As for npc.cfg, it's definitely been tampered with. Just open it and look for the damage dice of the fire wyvern. 100% certain it's not supposed to deal 159990D18 damage. There are more instances of tampered npcs and other files.
 NPC.item is default. Try removing the NpcItem.cfg from the files and 're-check' if the problem persists...
Back to top Go down
 
[SRC+FILES] HGServer-Client-Files
Back to top 
Page 2 of 6Go to page : Previous  1, 2, 3, 4, 5, 6  Next

Permissions in this forum:You cannot reply to topics in this forum
Join Helbreath :: Open Source / Development Corner :: Files / Sources-
Jump to: