Inventory middleware stuffs
Moderator: InsideQC Admins
22 posts
• Page 2 of 2 • 1, 2
This was broken due to 2 changes in DP (well at least one totally confirmed, the other Im not sure if it was changed or just worked out of blind luck).
One being the viewing of the inventory screen is controlled via an addstat, this passes the value of a float when it should be using an integer to represent whether the inventory is on or off, to fix this and press TAB (as it should) to view the inventory open up the file:
sv_main.qc
go to the line that says this:
and change it to this:
now compile the progs.dat and you should be able to toggle on and off the inventory as expected.
but alas! Another issue once fixing this is previously with DP required you to do your own math to figure out the mouse location correctly. This is in the client side QC. Right now if you compile and run it it should look like the mouse can never leave the bottom right quadrant of the screen, so lets fix that.
open up: CL_GenericCollision.qc located in QC_Source/client/cl_inventory/
find this function:
and replace it with this:
now compile the csprogs.dat and that should bring everything back up to speed for when I wrote this.
To compile the progs/csprogs requires of course your own qc compiler (I used fteqcc).
place one in the QC_Source directory and run it to compile the progs,
and do the same in the QC_Source/client/ directory and run it to compile the csprogs
good luck!
One being the viewing of the inventory screen is controlled via an addstat, this passes the value of a float when it should be using an integer to represent whether the inventory is on or off, to fix this and press TAB (as it should) to view the inventory open up the file:
sv_main.qc
go to the line that says this:
- Code: Select all
SV_AddStatFloat(36, 8, ToggleInventory);
and change it to this:
- Code: Select all
SV_AddStatFloat(36, 2, ToggleInventory);
now compile the progs.dat and you should be able to toggle on and off the inventory as expected.
but alas! Another issue once fixing this is previously with DP required you to do your own math to figure out the mouse location correctly. This is in the client side QC. Right now if you compile and run it it should look like the mouse can never leave the bottom right quadrant of the screen, so lets fix that.
open up: CL_GenericCollision.qc located in QC_Source/client/cl_inventory/
find this function:
- Code: Select all
vector() GetCursorPos =
{
local vector pos, vid_size;
vid_size_x = cvar("vid_conwidth");
vid_size_y = cvar("vid_conheight");
pos = vid_size*0.5 + getmousepos();
return pos;
};
and replace it with this:
- Code: Select all
vector() GetCursorPos =
{
return getmousepos();
};
now compile the csprogs.dat and that should bring everything back up to speed for when I wrote this.
To compile the progs/csprogs requires of course your own qc compiler (I used fteqcc).
place one in the QC_Source directory and run it to compile the progs,
and do the same in the QC_Source/client/ directory and run it to compile the csprogs
good luck!
- Chris
- Posts: 79
- Joined: Sat Aug 05, 2006 5:31 am
My CSQC GUI project supports diablo-style inventory systems like so:
Although I haven't done much to make it compatible with SSQC. Shouldn't be too hard.
Although I haven't done much to make it compatible with SSQC. Shouldn't be too hard.
- avirox
- Posts: 137
- Joined: Wed Aug 16, 2006 3:25 pm
Thank you Chris! :3
Yes, I already saw and test your inv ^__-
avirox wrote:My CSQC GUI project supports diablo-style inventory systems like so:
Although I haven't done much to make it compatible with SSQC. Shouldn't be too hard.
Yes, I already saw and test your inv ^__-
-

WINGED_DOOM - Posts: 22
- Joined: Tue Nov 30, 2010 10:29 am
WHY?? (Inventory stuff)
I am adapting this http://forums.inside3d.com/viewtopic.php?f=2&t=927inventory to v.1.06 qc and works very fine.... only in q3bsps... Can someone explain me why this inventory system doesn´ t work in q1bsps? PLEASE ! HELP ME!
hi, I am nahuel, I love quake and qc.
-

Nahuel - Posts: 492
- Joined: Wed Jan 12, 2011 8:42 pm
- Location: mar del plata
Re: Inventory middleware stuffs
I moved above post into this thread after it was posted with the useless title "WHY?? (Inventory stuff)" as new thread.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
- Spirit
- Posts: 1031
- Joined: Sat Nov 20, 2004 9:00 pm
22 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest