HCR2 and a PW
#1
Posté 22 juillet 2010 - 10:45
I do have a few things that I have trouble with on my PW, and I would love to figure out solutions for them. I have a limited understanding of scripting though, so I may be needing a bit of extra help to get these resolved.
Problems I am having with HCR2 and my PW
1. Offline Resurrection
- When an offline player is raised and the player logs in AFTER A SERVER RESET they are still in the fugue, but lose xp as if they have been raised.
- Is there anyway to fix this? Even if it just moves them to a default location.
2. Corpse Tokens over Server reset
- Players that where dead when the server reset no longer have corpse tokens on the world, causing them not to be raiseable from a player
- Is there a way to create a corpse token in a default location/container when a player logs in and has no corpse token in the world?
3. Player Names
- Any players with "illegal characters" in their names
- Raise dead/resurrection won't work on them
- Many players like to have the " ' " apostrophe or a " " space in their names. I would love a solution to allow at least these two characters.
- Length of names are limited also because it uses the H2_loginname_characternamefirst_andlast format and that is limited to 32 characters.
- Is there anyway around that? I notice in the code there is a StripIllegalCharacters Function and in v1.05 it adds a check concerning the length, but I notice players on my PW still can't have these characters. I havn't tested the Length of names since we upgraded to v1.05.
I may very well, have missed a setup somewhere that allows some of this to work, if so what/where is it. If not, anyone have fixes for these, or help to get them fixed?
Thanks in advance.
#2
Posté 23 juillet 2010 - 12:46
That sounds like a bug, send me more detailed info about it in a PM.Quilistan wrote...
First off I would like to start off by saying I LOVE the HCR2 system, and I have used HCR1 for a very long time and HCR2 since its release. I truly appreciate 0100010's work.
I do have a few things that I have trouble with on my PW, and I would love to figure out solutions for them. I have a limited understanding of scripting though, so I may be needing a bit of extra help to get these resolved.
Problems I am having with HCR2 and my PW
1. Offline Resurrection
- When an offline player is raised and the player logs in AFTER A SERVER RESET they are still in the fugue, but lose xp as if they have been raised.
- Is there anyway to fix this? Even if it just moves them to a default location.
2. Corpse Tokens over Server reset
- Players that where dead when the server reset no longer have corpse tokens on the world, causing them not to be raiseable from a player
2. This is doable but may not be in an HCR2 update for a
couple reasons. First is because different builders will want to handle
death and resurrection differently. Want you want is a default body dump
location. The location of where a PC died is lost after a reset, and
their NPC object corpse copy no longer exists. So first you'd need to
persist that last location the corpse was left at (and since they can be
moved it might not be were they last died) or a default universal
location (easier). When the server is resets and comes back up the body
would not exist there, it would not be able to get recreated until after
the player logs in, and a copy can then be made and the corpse can be
transported.
- Is there a way to create a corpse token in a default location/container when a player logs in and has no corpse token in the world?
3. Player Names
- Any players with "illegal characters" in their names
- Raise dead/resurrection won't work on them
- Many players like to have the " ' " apostrophe or a " " space in their names. I would love a solution to allow at least these two characters.
- Length of names are limited also because it uses the H2_loginname_characternamefirst_andlast format and that is limited to 32 characters.
- Is there anyway around that? I notice in the code there is a StripIllegalCharacters Function and in v1.05 it adds a check concerning the length, but I notice players on my PW still can't have these characters. I havn't tested the Length of names since we upgraded to v1.05.
I may very well, have missed a setup somewhere that allows some of this to work, if so what/where is it. If not, anyone have fixes for these, or help to get them fixed?
Thanks in advance.
Not really possible unfortunately. Object Tags, included uses of SetTag() strip those illegal characters out anyway. There are multiple locations (mostly in tracking corpse stuff) where the set tag needs to match the player's ID. There are other kludgy workarounds you can try, (like an enumerated, incrementing ID number) but they each have their problems. The 32 character limit is also a problem with tags and with the default bioware database. Same story here. EVentually no matter what system you pick you still have to associate playername, charfirstname, charlastname to an ID. And thay string if stored has to fit the max field with in the DB. You may be able to more easily workaround these issues if you do not use the default DB, but mySQL or SqlLite via NWNX instead. But you still have to change the code as well. I don't plan on changing this at this point.
Any future HCR2 update I do (if there is one) will be the last one, after that I'm letting BrianMeyer take it over to incorporate into his complete base PW and common scripting library set. I'll still be around to answer questions but my NWN2 work will be toward my mod.
#3
Posté 23 juillet 2010 - 01:48
For here I would like to know more about a "Body Dump".
- Is there a way to check if a player has a valid corpse?
- If I can check for that corpse and it is found that they DON'T have one, can I then create one in a coffin in the town cemetary(body dump container)?
I think I remember seeing something similar to this on the Abyssya PW. I just havn't been smart enough to figure out how to do it yet?
#4
Posté 11 août 2010 - 04:12





Retour en haut






