Silly bot question
stupid question but when I spawn a bot depending on the class and race they dont have armor or anything to start but it shows them wearing armor. anyway to set it so they look naked when spawned?
|
If you could give me a few combo examples, I'll take a look at it.
|
I've noticed this as well, it seems Barbarians spawn with a chain chest texture and a plate helmet texture, I'm sure there are others, but this is just something I saw when I was messing around on a server for a couple of minutes last night.
EDIT: It seems in bot.cpp the texture is set on spawn to 0xFF, I'm not sure why it would give the appearance of chain and plate though: Code:
void Bot::Spawn(Client* botCharacterOwner, std::string* errorMessage) { Code:
if(!strcasecmp(sep->arg[1], "haircolor") || !strcasecmp(sep->arg[1], "hair") || !strcasecmp(sep->arg[1], "beard") || !strcasecmp(sep->arg[1], "beardcolor") || !strcasecmp(sep->arg[1], "face") |
I know there are some model update issues..I have a posting somewhere..sec...
http://www.eqemulator.org/forums/showthread.php?t=36819 It may, or may not, be related..but, I can put it back on the short list to look at. |
the troll shaman has a full set of armor on thats all different colors. just to give an example. also almost every bot race/class I spawn no matter what client im on has a chest piece of some sort on them.
|
I did some in-game testing on 'nude' bots using the current code base.
Ti (6.2?) does not show this issue.. SoF thru UF show this issue.. RoF shows this issue and the #wc command will not change it... I agree with what Kingly_Krab pointed out as being the problem..though, I'd like to look a little deeper into before pushing a fix. I suspect that something changed in between Ti and SoF..but, it could also be something in our code. Either way, I need to verify that the translators will pass the change correctly. Part of the problem is that we treat bots as npcs..and then tell the client that they're other clients... We just need to ensure that we pass on relevant data as client-based and not npc-based. |
thank you for taking the time to look into it. I noticed no issues in Titanium aswell. Im looking forward to a hopeful fix in the near future =)
|
The 'default' chest armor graphic is fix is committed..but, I forgot to see if I could force armor glitches in other slots.
Hopefully, this will fix all of that mess..but, please post back if you see anymore bot model glitches. EDIT: I went back and checked a few items with RoF..and, it does appear to have corrected that issue from the items I tested with. |
Applied the graphics fix. seems to have fixed the chest piece but still getting the "dyed" armor effect in other slots. half way there thow =P
Also the slots that look dyed on the bots don't have any items equipped on them. they just spawn like that when you create the bot. Create a troll shaman and you will see what I mean =) |
Yeah, I tested with the only combinations I could remember and with what was in that bug link post..my desktop went nuclear earlier this year and
I lost a lot of notes I had on the issue... I don't know about spawning issues..but, I do remember it being prevalent when removing armor..the armor model would stay the same, but, turn green :/ This is still on my short list..I don't want to have to re-open that bug thread :P |
I think its too late for that :p
|
There are 2 ways to send initial spawn data..
1) When a player zones in and all existing mobs are sent.. 2) When a player is in-zone and a mob is spawned.. Do you remember if these glitches show up on both spawn actions? |
Seems that armor color is sent in Bot::FillSpawnStruct:
Code:
void Bot::FillSpawnStruct(NewSpawn_Struct* ns, Mob* ForWho) { Code:
uint32 Bot::GetEquipmentColor(uint8 material_slot) const Edit: Maybe 0 isn't a good default value as 4278190080 shows as colorless or "white". |
Code:
ns->spawn.is_npc = 0; Underfoot uses 'NPC' only in zone spawns..'is_npc' only shows up in the illusion encode. I'm not 100% on spawn structs and what mob types use which fields..but, I think all playable races should be using equipment[0-8] for armor models, and non-playable use texture, helmtexture, etc... for armor models. I still think it's related to how we identify bots as 'clients' to the client and are misusing some of the inital struct fields..but, it could be color. The green only show up on an empty slot, not a properly occupied slot. It retains the model of the removed item..but, in a green shade..possibly a transparency mask. (rgb 0x00FF00 level brightness..no texture, only the painted surface) I really just need to compare Ti vs. later clients translators to see what has changed..we may have a hard-coded unidentified field in the spawn packet (like the 'is_npc' field) |
Ok, I reactivated some old code to get them working again. (I really narfled the garthok on that one, didn't I?)
I think you guys helped me to figure out what the problem was in my bug report..I just need to substantiate my theory now :shock: (I did see what you meant about the 'green' on the Troll Shaman's loin cloth. This wasn't the same green that I was seeing in my glitches..but, it was very helpful!) |
All times are GMT -4. The time now is 09:26 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.