For direct access use https://forums.oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com
How do I safely add items to the "back" of the Inventory Chain?
- スマイル・ドラゴン
- OldUnreal Member
- Posts: 1263
- Joined: Sun Feb 10, 2008 9:07 pm
How do I safely add items to the "back" of the Inventory Chain?
I want to avoid lag and other odd problems with the way AddInventory works by default, could anybody show me how to go about changing it so instead of it adding items to the "front" of the linked list it adds it to the "back" of it?
I am the dragon without a name.
Ðàrk-_¦_-Ñïght.: / κυνικός Δράκων / スマイル・ドラゴン / Draco Nihil
Ðàrk-_¦_-Ñïght.: / κυνικός Δράκων / スマイル・ドラゴン / Draco Nihil
- []KAOS[]Casey
- OldUnreal Member
- Posts: 4497
- Joined: Sun Aug 07, 2011 4:22 am
- Location: over there
Re: How do I safely add items to the "back" of the Inventory Chain?
This is 227i's current implementation:
Code: Select all
// Add Item to this pawn's inventory.
// Returns true if successfully added, false if not.
function bool AddInventory( inventory NewItem )
{
// Skip if already in the inventory.
local inventory Inv;
local int i;
local Actor Last;
// The item should not have been destroyed if we get here.
if ( NewItem==None || NewItem.bDeleteMe )
return false;
Last = Self;
for ( Inv=Inventory; (Inv!=None && i++
- スマイル・ドラゴン
- OldUnreal Member
- Posts: 1263
- Joined: Sun Feb 10, 2008 9:07 pm
Re: How do I safely add items to the "back" of the Inventory Chain?
Is the "i++
I am the dragon without a name.
Ðàrk-_¦_-Ñïght.: / κυνικός Δράκων / スマイル・ドラゴン / Draco Nihil
Ðàrk-_¦_-Ñïght.: / κυνικός Δράκων / スマイル・ドラゴン / Draco Nihil
- []KAOS[]Casey
- OldUnreal Member
- Posts: 4497
- Joined: Sun Aug 07, 2011 4:22 am
- Location: over there
Re: How do I safely add items to the "back" of the Inventory Chain?
I believe so. The root cause was never actually discovered, from what I understand. This is just a lame workaround, to be fair having 1,000 distinct inventory items is pretty damned unlikely.