Coming Soon: Discussion Thread (2022)

Moderators: Moderator, Developer, Quality Control, DM

User avatar
Ewe
Custom Content
Posts: 746
Joined: Wed Feb 28, 2018 2:01 pm

Re: Bags

Unread post by Ewe »

zhazz wrote: Wed Jan 26, 2022 11:34 pm Items already have a unique identifier associated with them. It's visible in the combat log when looting with the /lootall command from the Skywing Extension.
These are only good for the current session. A particular object's serial number doesn't persist across server resets.

These ids are not even the same across server boundaries. When you transfer to the other server all your objects and PC are recreated and new object ids assigned based on whatever the next available ones are for the session.


Keep in mind we don't have the source code for the game server or client. I'm not sure what kind of development work you've done, but reverse engineering and engine hacks for executables without having any source code are quite complex compared to having access to and compiling high level source code.
AKA Dae-Glyth
Discord: Dae-Glyth#1759
User avatar
zhazz
Posts: 851
Joined: Sat Feb 08, 2020 7:12 am

Re: Bags

Unread post by zhazz »

Ewe wrote: Thu Jan 27, 2022 1:14 pm
zhazz wrote: Wed Jan 26, 2022 11:34 pm Items already have a unique identifier associated with them. It's visible in the combat log when looting with the /lootall command from the Skywing Extension.
Keep in mind we don't have the source code for the game server or client. I'm not sure what kind of development work you've done, but reverse engineering and engine hacks for executables without having any source code are quite complex compared to having access to and compiling high level source code.
Of this I am aware :)

From my own limited experience, and talking with Valefort in the past, it is my understanding that nearly all of what is mod-able in the game happen either true the 2da files, or event subscriptions: e.g. PCEquipsItemEvent or AttackHitsTargetEvent.

Any changes or additions to the game code has to happen through these events, and some of them are unfortunately limited in what data they expose; either through no visibility at all for said data, or that data being read-only.




The following pseude-example (don't know all the syntax and loops and hoops) is how to possibly generate and use a unique character id.

The only time there will be an issue with it, is if the player decides to RCR their character (new DMFI Tool), while also changing the name of their character (RP reasons or mis-spellings). Name changes, however, are usually handled by the staff, or have been in the past at least.

Maybe our developers have already thought and scrapped this option, if so, I'll continue to scratch my head and hope something falls out.

Pseudo-code example of unique character id generation and usage.

Code: Select all

void OnCharacterLogInEvent(var oTarget, ..., ...)
{
	const string DMFITOOL_CHARACTERID_KEY = "UniqueCharId";

	if (!IsPC(oTarget))
		return;
	
	var oDMFITool = GetDMFIToolFromPC(oTarget);
	var dictDMFIEntries = GetDatabaseFromDMFITool(oDMFITool); // Might be an array? I don't know.
	
	string uniqueCharId = dictDMFIEntries.GetEntryByKey(DMFITOOL_CHARACTERID_KEY);
	
	if (uniqueCharId != NULL && uniqueCharId != "")
		return;
		
	string uniquePlayerId = GlobalTools.GetCurrentPlayerId(); // Might be the CD-Key, might be something else.
	string characterName = GetCharacterName(oTarget);
	uniqueCharId = GlobalTools.MD5(uniquePlayerId + characterName);
	
	dictDMFIEntries.AddEntry(DMFITOOL_CHARACTERID_KEY, uniqueCharId);
}


void OnItemAddedToContainer(var oTarget, var oItem, ..., ...)
{
	const string DMFITOOL_CHARACTERID_KEY = "UniqueCharId";
	const string TBL_PLAYER_CONTAINERS = "tblPlayerContainers";

	if (!IsPC(oTarget))
		return;
	
	var oDMFITool = GetDMFIToolFromPC(oTarget); // Psedu-example
	var dictDMFIEntries = GetDatabaseFromDMFITool(oDMFITool); // More Psedu-example
	
	string uniqueCharId = dictDMFIEntries.GetEntryByKey(DMFITOOL_CHARACTERID_KEY);
	
	string uniqueItemId = GetUniqueItemId(oItem); // Not sure how to do this (yet)
	
	if(GlobalTools.Database.CheckEntryExists(TBL_PLAYER_CONTAINERS, new [] { uniqueCharId, uniqueItemId })) // Check for multi-column unique key.
		return;
	
	GlobalTools.Database.AddEntry(TBL_PLAYER_CONTAINERS, uniqueCharId, uniqueItemId);
}
Adrian Baker - An innocent virtuoso (bio | journal)
Relyth Ravan'Thala - Bear of an Elf
Timothy Daleson - Paladin Wand Maker
Duncan Matsirani - A wanderer
User avatar
Ewe
Custom Content
Posts: 746
Joined: Wed Feb 28, 2018 2:01 pm

Re: Bags

Unread post by Ewe »

These conversations are becoming more than what the typical player needs to be concerned about. This has been pretty well thought out by the staff already, I'd ask you trust us. I'll try to answer this, but I don't have time to dedicate to defending every technical decision. I understand you want to help, but maybe consider applying as a dev?


Why is UUID needed?
Object IDs for Playable Characters (PCs) do not persist across sessions or server boundaries. Further, other identifying information about a player including CDKey, First Name, Last Name, bic file name, and so on are all mutable. PC names are frequently changed by DMs at player request or when granting an RP title reward. Additionally, the disguise system also changed PC names.

PCs may be tied to one or more CD keys, which can also change over time if the player obtains a new CD key and makes an admin request. It is typical for one CD key to have many characters. CD Keys may also be given away by one player to another. Additionally, previous attempts at “unique IDS” were subject to ill advised truncation issues or illegal windows filename symbols being removed and so on.

It’s just really hard to maintain a PW when a PC id is mutable. To this end, an immutable ID in the form of a UUID that cannot be changed through nwscript makes sense. It makes so much sense that this is literally what Beamdog did for nwn:ee. See nwn1 lexicon: https://nwnlexicon.com/index.php?title=GetObjectUUID
AKA Dae-Glyth
Discord: Dae-Glyth#1759
User avatar
mrm3ntalist
Retired Staff
Posts: 7746
Joined: Wed Feb 29, 2012 5:31 pm
Location: US of A

Re: Northlander Hewing

Unread post by mrm3ntalist »

Rhifox wrote: Sat Jan 29, 2022 1:44 amHowever, the DM team will be willing to offer 100% RCRs for anyone who feels they need to change out this feat because of these changes. This offer will be available for one month, until March 1st.
This is nice, but there are no DMs online
Mendel - Villi of En Dharasha Everae | Nikos Berenicus - Initiate of the Mirari | Efialtes Rodius - Blood Magus | Olaf Garaeif - Dwarven Slayer

Spelling mistakes are purposely entered for your entertainment! ChatGPT "ruined" the fun :(
User avatar
DM Winter
Posts: 1395
Joined: Mon Oct 25, 2021 6:28 am

Re: Northlander Hewing

Unread post by DM Winter »

mrm3ntalist wrote: Sat Jan 29, 2022 12:23 pm
Rhifox wrote: Sat Jan 29, 2022 1:44 amHowever, the DM team will be willing to offer 100% RCRs for anyone who feels they need to change out this feat because of these changes. This offer will be available for one month, until March 1st.
This is nice, but there are no DMs online
I've literally been on since 8am EST today :(

But anyway. Just to also inform everyone. I'm often online early afternoon GMT and sometimes late EST. Feel free to poke me in game if you qualify for it and are looking to RCR!
Winter is coming... Or something like that, idk, you get the joke

My Event's Rules & Guidelines
Server Rules / PVP Rules / Narrative & Expectation

The HDM on Desk Duty!
User avatar
Kitunenotsume
Posts: 631
Joined: Sun May 17, 2020 10:57 pm
Location: UTC -7

Re: Coming Soon: Flowers & Jewelry (aka extra icon customization)

Unread post by Kitunenotsume »

yay! more choices! I am looking forwards to using them to represent more of my foods and things.

Thank you!
I play a baker. Sometimes she provides counseling or treatment.
Ask about our Breadflower daily special to save five coppers off a purchase of five pastries.
She seems unusually interested in cursed items.
She has also been seeking a variety of gems and stones.
User avatar
YourMoveHolyMan
Recognized Donor
Posts: 987
Joined: Fri Jul 10, 2009 5:11 pm
Location: Alabama

Re: Coming Soon: Flowers & Jewelry (aka extra icon customization)

Unread post by YourMoveHolyMan »

These look awesome!
Michael Dunn

“There is more than one sort of prison, Captain," Chirrut said. "I sense that you carry yours wherever you go.”
User avatar
Lux
Retired Staff
Posts: 589
Joined: Wed Jun 17, 2015 11:52 am
Location: In a meadow somewhere

Re: Coming Soon: Flowers & Jewelry (aka extra icon customization)

Unread post by Lux »

All of my yes.

/ Sincerely, someone who customises everything
What we see depends mainly on what we look for
User avatar
Steve
Recognized Donor
Posts: 8141
Joined: Wed Jul 08, 2015 5:42 am
Location: Paradise in GMT +1

Re: Coming Soon: Flowers & Jewelry (aka extra icon customization)

Unread post by Steve »

Awesome additions!

Talsorian the Conjuransmuter - The (someTIMEs) Traveler

The half-MAN, the MYrchanT(H), the LEGENDermaine ~ Jon Smythe [Bio]

Brinn Essebrenanath — Volamtar, seeking wisdom within the earth dream [Bio]
User avatar
renshouj
Custom Content
Posts: 420
Joined: Mon Mar 23, 2020 4:18 am

Re: Coming Soon: Flowers & Jewelry (aka extra icon customization)

Unread post by renshouj »

love, love, love!

These are amazing and beautiful, thank you for your work!
Discord: jojoelm
Brazilian Timezone (GMT-3)

Current Character(s):
Runa Helvig - High Druid of Eldath of the Green Enclave ( BIO | JOURNAL )
Davka Onyxvein - Traveler, Merchant, Illusionist, Etc. ( BIO | SERVICES )
User avatar
Kitunenotsume
Posts: 631
Joined: Sun May 17, 2020 10:57 pm
Location: UTC -7

Re: Coming Soon: Flowers & Jewelry (aka extra icon customization)

Unread post by Kitunenotsume »

I do have a slight question on this matter: Are Food-stuff icons likely to be considered for consumables, or just plant and potion variants?
I play a baker. Sometimes she provides counseling or treatment.
Ask about our Breadflower daily special to save five coppers off a purchase of five pastries.
She seems unusually interested in cursed items.
She has also been seeking a variety of gems and stones.
User avatar
KOPOJIbPAKOB
Retired Staff
Posts: 850
Joined: Mon Jul 24, 2017 5:24 am

Re: Coming Soon: Flowers & Jewelry (aka extra icon customization)

Unread post by KOPOJIbPAKOB »

Kitunenotsume wrote: Wed Feb 02, 2022 11:05 pm I do have a slight question on this matter: Are Food-stuff icons likely to be considered for consumables, or just plant and potion variants?
They weren't considered, but I'll see what I can add.
(\/);,;(\/)

Discord: Nastya Raynor#3136

Pink is me speaking on behalf of the Media Team, everything else is just my player opinion.
User avatar
Kitunenotsume
Posts: 631
Joined: Sun May 17, 2020 10:57 pm
Location: UTC -7

Re: Coming Soon: Flowers & Jewelry (aka extra icon customization)

Unread post by Kitunenotsume »

KOPOJIbPAKOB wrote: Thu Feb 03, 2022 10:46 am They weren't considered, but I'll see what I can add.
That would be wonderful, and greatly appreciated by those of us who regularly engage in cooking RP. It would be immensely satisfying to have options for food icons beyond renaming those that already exist, and actually produce our own goods.
I play a baker. Sometimes she provides counseling or treatment.
Ask about our Breadflower daily special to save five coppers off a purchase of five pastries.
She seems unusually interested in cursed items.
She has also been seeking a variety of gems and stones.
User avatar
Steve
Recognized Donor
Posts: 8141
Joined: Wed Jul 08, 2015 5:42 am
Location: Paradise in GMT +1

Re: Coming Soon: Pets

Unread post by Steve »

Rhifox wrote: Sat Feb 12, 2022 3:10 am A coming patch will include purchasable pet cages (store still to be determined) that allows characters to own pets. Pets are similar to animal companions and familiars, but do not level with the character. All pets are level 2, and will be able to be named.

The available pets will be:

Cat
Chicken
Hawk
Pig
Rabbit
Rat
Snake
Weasel
Tarantula
Dog
Cattledog
Dalmatian
Doberman
Will they function like Companions in combat? Are they able to be killed by other PCs and/mobs?

Talsorian the Conjuransmuter - The (someTIMEs) Traveler

The half-MAN, the MYrchanT(H), the LEGENDermaine ~ Jon Smythe [Bio]

Brinn Essebrenanath — Volamtar, seeking wisdom within the earth dream [Bio]
User avatar
Rhifox
Custom Content
Posts: 3964
Joined: Wed Jan 13, 2016 2:34 am

Re: Coming Soon: Pets

Unread post by Rhifox »

Steve wrote: Sat Feb 12, 2022 4:43 am Will they function like Companions in combat? Are they able to be killed by other PCs and/mobs?
I am debating whether or not they will use summon/companion mechanics or familiar mechanics.

They are as targetable and killable as any other summon.
Tarina — The Witch of Darkhold, a dealer in spirits and black magic
Post Reply

Return to “Archive”