EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   General::General Discussion (https://www.eqemulator.org/forums/forumdisplay.php?f=586)
-   -   Any Race/Class combo classic servers? (https://www.eqemulator.org/forums/showthread.php?t=37374)

Fadedspirit 10-20-2013 05:17 PM

Quote:

Originally Posted by Davood (Post 225116)
I will list off the sections I have changed:

(bolded)file name
(regular text) functions changed

bot.cpp (2 changes)
[search for the following]
bool Bot::IsValidRaceClassCombo() {
[search for the following]
std::string Bot::RaceIdToString(uint16 raceId) {

client.cpp (2 changes)
[search for the following]
char* Client::GetRacePlural(Client* client) {
[search for the following]
// Race
std::string race_Name = itoa(GetRace());
switch(GetRace())
{

item.cpp (1 change)
[search for the following]
bool Item_Struct::IsEquipable(uint16 Race, uint16 Class_) const

pets.cpp (1 change)
[search for the following]
//handle beastlord pet appearance
if(record.petnaming == 2)
{
switch(GetBaseRace())
{

race.h
I replaced 100% of this file

races.cpp (1 change)
[search for the following]
uint32 GetArrayRace(uint16 race) {


your IDE should be helpful in figuring out what the actual code blocks are that you need to copy.

i pullled those segments without looking at the code.. i have some offline notes. I don't have time right now to actually prepare the code blocks.. but maybe later tonight I can do that if you really want.

An easier solution is to take 100% of my code, and revert attack*.* pets.* and bots.* back to eqemu default. or keep them. your choice.


Errr, races.h you only added 36 new lines of code, so you modified maybe 25% of that file? You didn't replace anything either. I had already done essentially what you did there anyways so, nothing really different there.

Pets.cpp && Bot.cpp won't help me with my issue :).

I had also changed GetArrayRace to work with races.h. Right now i'm not sure what the issue is but i'll keep hunting around.

ps: I already tried grabbing your races.cpp, races.h, and client.cpp, but the issue persisted. I also changed Item.cpp from return(IsRace && IsClass); to simply return(IsClass);, so it nullifies that issue right out of the door. Trying to figure out what else might be the issue.

Fadedspirit 10-20-2013 10:13 PM

Ok, so something is up with my compiler I think? I intentionally sabotaged my IsEquippable() so it always returned false, yet normal races have no issues with items when I equip them? Their stats are reflected correctly and regen fine.


I'm compiling the code i've been modifying, and pulling from the correct Bin folder. What could be my issue :(?

Am I not supposed to be cleaning, and then building "All_Build" when I modify the source?

Any ideas what my issue could be?? :-x

Davood 10-20-2013 10:34 PM

that sounds very strange.

try the following

pull my code - and compile it -

does it work?

if it doesn't there could be a problem in your process. what are you doing exactly to compile it?

clearly something isn't happening if you sabotaged a key process and it still works.

or perhaps you weren't thorough in your testing. when you say the equipment still works for pcs. do you mean that #mystats shows the "normal" stats with the equipment? if it isn't working it will show the naked stats always - but your client doesn't know if it shoudl be working or not and it will always "Work" client side.. the server will tell you teh truth with #mystats

Davood 10-20-2013 10:39 PM

Anyways.

my suggestion is the following:

establish a working baseline.

Can you compile my codebase and get it to work? If yes then you just missed something in your copy of the code. get yourself diffzilla and diff that sucker and see what is different!

if not then maybe there is something wrong with my github repository. I can dump it to another dir and diff it against my working dir if i really really have to - i hope that isn't necessary?

Fadedspirit 10-20-2013 11:24 PM

Quote:

Originally Posted by Davood (Post 225130)
Anyways.

my suggestion is the following:

establish a working baseline.

Can you compile my codebase and get it to work? If yes then you just missed something in your copy of the code. get yourself diffzilla and diff that sucker and see what is different!

if not then maybe there is something wrong with my github repository. I can dump it to another dir and diff it against my working dir if i really really have to - i hope that isn't necessary?

I already said that your files, specifically item.cpp, races.cpp, races.h, and client.cpp compile fine but custom races still do not report their hp/mana correctly and melee weapons won't work (invuln bug).

I did not check #mystats, but the client wasn't reporting stats correctly either, and when I sabotaged IsEquippable my melee weapon on a normal race did normal damage, and my stats reported correctly (hp/mana regenned fine, etc).

There's something else going on here :(


I'm thinking your code is too old, and something was changed in the past 4-5 months since you got yours working, because IsEquippable isn't even being called now lol? I triple checked to make sure I was compiling and moving the Bin code to the correct location. No idea what's up.

rencro 10-21-2013 12:23 AM

I just compiled this today on my code and it worked fine..I equipped two Silver Fire Wedding Rings (30hp apiece) and went into W Freeport and let them beat me down near death then ran to guards, put on my fungi, and all was good..

Im not using : (werewolf,bixie,kerran,brownie,banshee,any of the pirates)

I'll post the code blocks..

common/item.cpp
Code:

AT -- about line 1893ish (sorry have other custom code)

bool Item_Struct::IsEquipable(uint16 Race, uint16 Class_) const
.
.
.
for (unsigned int CurrentRace = 1; CurrentRace <= PLAYER_RACE_COUNT; ++CurrentRace)
        {
                if (Races_ % 2 == 1)
                {
                                if (CurrentRace == Race_)
                        {
                                        IsRace = true;
                                break;
                        }
                }
                Races_ >>= 1;
        }
       
        return (IsRace && IsClass);

CHANGE TO --

for (unsigned int CurrentRace = 1; CurrentRace <= PLAYER_RACE_COUNT; ++CurrentRace)
        {
                if (Races_ % 2 == 1)
                {
                                if (CurrentRace == Race_)
                        {
                                        IsRace = true;
                                break;
                        }
                }
                Races_ >>= 1;
        }
        if (Race_ == 69) {IsRace = true;} //davood

        return (IsRace && IsClass);

common/races.cpp
Code:

AT -- about line 74

uint32 GetArrayRace(uint16 race) {
.
.
.
                case FROGLOK2:
                        return Array_Race_FROGLOK;
                case DRAKKIN:
                        return Array_Race_DRAKKIN;

                default:
                        return Array_Race_UNKNOWN;

CHANGE TO --

                case FROGLOK2:
                        return Array_Race_FROGLOK;
                case DRAKKIN:
                        return Array_Race_DRAKKIN;
                case ALAKAMIN_PYRILEN:
                case ALAKAMIN_GELIDRAN:
                case ALAKAMIN_SHILLISKIN:
                case ALAKAMIN_BEHOLDER:
                case ALAKAMIN_HARPYR:
                case ALAKAMIN_SATYR:
                case ALAKAMIN_AVIAK:
                case ALAKAMIN_SIREN:
                case ALAKAMIN_MINOTAUR:
                case ALAKAMIN_FUNGOID:
                case ALAKAMIN_KOBOLD:
                case ALAKAMIN_GOBLIN:
                case ALAKAMIN_ORC:
                case ALAKAMIN_ULTRATAUR:
                case ALAKAMIN_BAZU:
                case ALAKAMIN_FAERIE:
                case ALAKAMIN_GARGOYLE:
                case ALAKAMIN_ZOMBIE:
                case ALAKAMIN_GNOLL:
                case ALAKAMIN_IMP:
                case ALAKAMIN_SCRYKIN:
                case ALAKAMIN_GOLEM:       
                        return Array_Race_SHROUD; // davood

                default:
                        return Array_Race_UNKNOWN;

common/races.h
Code:

In the Defines --

#define FROGLOK2                74        // Not sure why /who all reports race as 74 for frogloks
#define DRAKKIN                        522 // 32768
#define EMU_RACE_NPC        131069 // was 65533
#define EMU_RACE_PET        131070 // was 65534
#define EMU_RACE_UNKNOWN 131071 // was 65535


#define human_1                        1
#define barbarian_1                2

CHANGE TO --


#define FROGLOK2                74        // Not sure why /who all reports race as 74 for frogloks
#define DRAKKIN                        522 // 32768
#define EMU_RACE_NPC        131069 // was 65533
#define EMU_RACE_PET        131070 // was 65534
#define EMU_RACE_UNKNOWN 131071 // was 65535
//davood custom races
#define ALAKAMIN_PYRILEN 408
#define ALAKAMIN_GELIDRAN 417
#define ALAKAMIN_SHILLISKIN 467
#define ALAKAMIN_BEHOLDER 469
#define ALAKAMIN_HARPYR 527
#define ALAKAMIN_SATYR 529
#define ALAKAMIN_AVIAK 558
#define ALAKAMIN_SIREN 564
#define ALAKAMIN_MINOTAUR 574
#define ALAKAMIN_FUNGOID 456
#define ALAKAMIN_KOBOLD 455
#define ALAKAMIN_GOBLIN 433
#define ALAKAMIN_ORC 458
#define ALAKAMIN_ULTRATAUR 470
#define ALAKAMIN_BAZU 409
#define ALAKAMIN_FAERIE 473
#define ALAKAMIN_GARGOYLE 464
#define ALAKAMIN_ZOMBIE 471
#define ALAKAMIN_GNOLL 524
#define ALAKAMIN_IMP 46
#define ALAKAMIN_SCRYKIN 495
#define ALAKAMIN_GOLEM 374 // davood


#define human_1                        1
#define barbarian_1                2

zone/client.cpp (NOTE--There are two locations need editing in this file)
Code:

AT -- about line 6200

void Client::SendStatsWindow(Client* client, bool use_window)
.
.
.
                case 130: race_Name = "Vah Shir";        break;
                case 330: race_Name = "Froglok";        break;
                case 522: race_Name = "Drakkin";        break;

                default: break;
        }
        /*##########################################################
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                H/M/E String

CHANGE TO --

                case 130: race_Name = "Vah Shir";        break;
                case 330: race_Name = "Froglok";        break;
                case 522: race_Name = "Drakkin";        break;
                //davood
                case 408: race_Name = "Pyrilen"; break;
                case 417: race_Name = "Gelidran"; break;
                case 467: race_Name = "Shilliskin"; break;
                case 469: race_Name = "Beholder"; break;
                case 527: race_Name = "Harpyr"; break;
                case 529: race_Name = "Satyr"; break;
                case 558: race_Name = "Aviak"; break;
                case 564: race_Name = "Siren"; break;
                case 574: race_Name = "Minotaur"; break;
                case 456: race_Name = "Fungoid"; break;
                case 455: race_Name = "Kobold"; break;
                case 433: race_Name = "Goblin"; break;
                case 458: race_Name = "Orc"; break;
                case 470: race_Name = "Ultrataur"; break;
                case 409: race_Name = "Bazu"; break;
                case 473: race_Name = "Faerie"; break;
                case 464: race_Name = "Gargoyle"; break;
                case 471: race_Name = "Zombie"; break;
                case 524: race_Name = "Gnoll"; break;
                case 46: race_Name = "Imp"; break;
                case 495: race_Name = "Scrykin"; break;
                case 374: race_Name = "Golem"; break;


                default: break;
        }
        /*##########################################################
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                H/M/E String

THEN AT -- about line 7100

const char* Client::GetRacePlural(Client* client) {
.
.
.
                case VAHSHIR:
                        return "Vah Shir"; break;
                case FROGLOK:
                        return "Frogloks"; break;
                case DRAKKIN:
                        return "Drakkin"; break;
                       
                default:
                        return "Races"; break;

CHANGE TO --

                case VAHSHIR:
                        return "Vah Shir"; break;
                case FROGLOK:
                        return "Frogloks"; break;
                case DRAKKIN:
                        return "Drakkin"; break;
                //davood
                case ALAKAMIN_PYRILEN:
                        return "Pyrilen"; break;
                case ALAKAMIN_GELIDRAN:
                        return "Gelidran"; break;
                case ALAKAMIN_SHILLISKIN:
                        return "Shilliskin"; break;
                case ALAKAMIN_BEHOLDER:
                        return "Beholder"; break;
                case ALAKAMIN_HARPYR:
                        return "Harpyr"; break;
                case ALAKAMIN_SATYR:
                        return "Satyr"; break;
                case ALAKAMIN_AVIAK:
                        return "Aviak"; break;
                case ALAKAMIN_SIREN:
                        return "Siren"; break;
                case ALAKAMIN_MINOTAUR:
                        return "Minotaur"; break;
                case ALAKAMIN_FUNGOID:
                        return "Fungoid"; break;
                case ALAKAMIN_KOBOLD:
                        return "Kobold"; break;
                case ALAKAMIN_GOBLIN:
                        return "Goblin"; break;
                case ALAKAMIN_ORC:
                        return "Orc"; break;
                case ALAKAMIN_ULTRATAUR:
                        return "Ultrataur"; break;
                case ALAKAMIN_BAZU:
                        return "Bazu"; break;
                case ALAKAMIN_FAERIE:
                        return "Faerie"; break;
                case ALAKAMIN_GARGOYLE:
                        return "Gargoyle"; break;
                case ALAKAMIN_ZOMBIE:
                        return "Zombie"; break;
                case ALAKAMIN_GNOLL:
                        return "Gnoll"; break;
                case ALAKAMIN_IMP:
                        return "Imp"; break;
                case ALAKAMIN_SCRYKIN:
                        return "Scrykin"; break;
                case ALAKAMIN_GOLEM:
                        return "Golem"; break;

                       
                default:
                        return "Races"; break;


knowom 10-21-2013 01:13 AM

There are a few different Gnoll texture types in the game brown, white, and black could the "choose face" option be made to let you pick between the different model types I think that would be rather cool.

I mean that would be similar to how Vah Shir and Froglok were done the choose face option did a bit more than simply alter the face textures in those character models.

Davood 10-21-2013 01:05 PM

I use extra sql tables to drtermine pkayer texture selection

when they zone it checks the db and sets the appropriate texture

also..all of this is done via perl and event_zone

Fadedspirit 10-21-2013 01:16 PM

@rencro

Like I said, I copied & pasted Davood's code just to see if i was really messing something up and nothing changed.

I'm thinking I've got a compiler issue going on, as I intentionally messed up the IsEquippable() method yet nothing happened.

I tried putting log events in, but none of them showed up :x.

I even double checked based on dateTime stamps on files to see which ones were being built, but still no changes were being seen.

I'll keep working on it though.



As for the /face thing, if there is code in the source to handle that it probably is possible, but you'd still need on_enter_zone events in perl to check your current texture each time you zone :-D!

Davood 10-21-2013 04:42 PM

I have a question fadedspirit.

what are the final 3 lines of your compiler output?

if the date time stamp of the exes isnt changing then it isn't actually compiling??? or skipping? maybe a config issue

rencro 10-21-2013 05:57 PM

Its almost like the old code is still running...Are you copying over to the server folder from the bin folder while the server is stopped(is this possible?? dunno)

Just for giggles how about deleting the "Build" directory and rerunning cmake?? Then recompile, then grab the files from the release folder (or debug if you built debug mode)

just taking shots in the dark, sorry..

Fadedspirit 10-21-2013 06:06 PM

Quote:

Originally Posted by rencro (Post 225161)
Its almost like the old code is still running...Are you copying over to the server folder from the bin folder while the server is stopped(is this possible?? dunno)

Just for giggles how about deleting the "Build" directory and rerunning cmake?? Then recompile, then grab the files from the release folder (or debug if you built debug mode)

just taking shots in the dark, sorry..

Yea, I'm trying a lot of things at the moment. Fairly certain it is a build error with my compiler. Just got home so haven't identified what it is just yet :-x.

Cheers

Davood 10-21-2013 06:30 PM

can you please read my last post.

what do the final 3 lines of your compile operation say?

Fadedspirit 10-21-2013 06:33 PM

Boom, got it working.


My VS2012 was borked and needed a reinstall. Kept telling me it had "compatibility issues with the current OS" of which is Server 2008 R2 (of which vs2012 is compatible with).

A quick 20minute repair, and everything is building correctly now :D!


Woot :]

knowom 10-21-2013 07:11 PM

Congrats glad you got that headache all straightened out.

Fadedspirit 10-22-2013 04:42 PM

Quote:

Originally Posted by knowom (Post 225165)
Congrats glad you got that headache all straightened out.

Now i just wish someone could point me in the direction of forcing Luclin models off when people join my server. Was a guide on a server years ago (Vekk/Zekk?) where it only allowed you to use the old models.

Apparently that was custom proprietary code that none are willing to share :confused:.

knowom 10-22-2013 07:10 PM

Quote:

Originally Posted by Fadedspirit (Post 225175)
Now i just wish someone could point me in the direction of forcing Luclin models off when people join my server. Was a guide on a server years ago (Vekk/Zekk?) where it only allowed you to use the old models.

Apparently that was custom proprietary code that none are willing to share :confused:.

Why do you want to force them to use the old models it's only seen on the clients end anyway? I don't get why that would matter to you honestly. Personally I prefer the older models though I can't see why you'd want to force them on users.

Davood 10-23-2013 02:26 PM

Its probably not going to be a popular choice.. but it might br possible hy disbling the expansions after velious.

Keggers 10-28-2013 05:21 PM

Quote:

Originally Posted by Tabaluga_Dragon (Post 224841)
Make a server like that I for one would check it out.

Your wish, granted.

<===Fadedspirit :)


All times are GMT -4. The time now is 11:47 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.