Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

[DarkPlaces] QC drawing graphics onto the screen? Goto page 1, 2 Next

| Inside3d Forums Forum Index -> QuakeC Programming

View previous topic :: View next topic
Author | Message
--- | ---
Nash Joined: 19 Oct 2007 Posts: 95 Location: Kuala Lumpur, Malaysia |

Posted: Fri Oct 19, 2007 9:49 pm Post subject: [DarkPlaces] QC drawing graphics onto the screen? |

Hi, does anyone know if it's possible to draw some graphics onto the screen during gameplay using QuakeC? I've perused all the built-in functions of QuakeC and scanned dpextensions.qc but I can't seem to find anything that would help me do this.
What I intend to achieve is along the lines of a "current objectives" panel similar to Quake 2, and maybe an in-game inventory screen thingy.
I have made custom graphics for the windows, consoles and stuff using Photoshop, but I can't seem to find a way to draw them in-game using QuakeC.
Do I have to resort to modifying DP's source to achieve this?

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Fri Oct 19, 2007 11:12 pm Post subject: |

That would be a job for Client-Side QuakeC. ... Unfortunately, nobody knows how to use it. Or if it even exists. _________________ F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.

Back to top |

Nash Joined: 19 Oct 2007 Posts: 95 Location: Kuala Lumpur, Malaysia |

Posted: Fri Oct 19, 2007 11:50 pm Post subject: |

Looks like I'll just have to modify the source to do this. :(

Back to top |

xaGe Joined: 01 Mar 2006 Posts: 329 Location: Upstate, New York |

Posted: Sat Oct 20, 2007 3:23 am Post subject: |

..And if it did exist a tutorial on how to use it would be great...

Sajt wrote:
That would be a job for Client-Side QuakeC. ... Unfortunately, nobody knows how to use it. Or if it even exists.

Back to top |

leileilol Joined: 15 Oct 2004 Posts: 1321 |

Posted: Sat Oct 20, 2007 3:32 am Post subject: |

what happened to tei's showlmp :S _________________

Back to top |

Nash Joined: 19 Oct 2007 Posts: 95 Location: Kuala Lumpur, Malaysia |

Posted: Sat Oct 20, 2007 12:47 pm Post subject: |

I guess this mod has it hard-coded then?

Back to top |

GiffE Joined: 08 Oct 2006 Posts: 141 Location: USA, CT |

Posted: Sat Oct 20, 2007 1:56 pm Post subject: |

Nash wrote:
I guess this mod has it hard-coded then?

Chris uses CSQC

Back to top |

Nash Joined: 19 Oct 2007 Posts: 95 Location: Kuala Lumpur, Malaysia |

Posted: Sat Oct 20, 2007 2:26 pm Post subject: |

So why this is Client-Side QuakeC so secretive, so mysterious? Is there a good reason why no one really wants to talk about it in particular?

Back to top |

xaGe Joined: 01 Mar 2006 Posts: 329 Location: Upstate, New York |

Posted: Sat Oct 20, 2007 2:27 pm Post subject: |

CSQC is an abbreviation for Client-Side QuakeC... Which has very little if no documentation and apparently only a handful of people in the world understand how to use with regards to Darkplaces & FTEQW...

GiffE wrote:

Nash wrote:
I guess this mod has it hard-coded then?

Chris uses CSQC

Back to top |

Nash Joined: 19 Oct 2007 Posts: 95 Location: Kuala Lumpur, Malaysia |

Posted: Sat Oct 20, 2007 3:01 pm Post subject: |

After some searching, I found out that Nexuiz has CSQC code in it. So off I went to download the game, and copied over the CSQC sources into my mod's folder. I'm going to try figure it out, but before that, I need to find out how to get it to even compile. Here is what frikqcc 2.6 spits out:

Code:
warning: LINK:0:System defs do match internal crcs.

Anyone knows what's going on?

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Sat Oct 20, 2007 4:27 pm Post subject: |

Well that's just a warning. It means it won't work as server-side QC progs.dat, which is quite the point, so you can ignore it. For the record I use FTEQCC. If you can't get something to compile in FrikQCC, there's a chance it uses some FTEQCC only features. (see here for the latest build of FTEQCC)
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.

Back to top |

Nash Joined: 19 Oct 2007 Posts: 95 Location: Kuala Lumpur, Malaysia |

Posted: Sat Oct 20, 2007 7:50 pm Post subject: |

Thanks. I used to have trouble deciding which compiler to use, but I went with Frik's for some reason I can't remember. :? (I think it was the lax error check/warnings... FTEQCC always produces tons of warnings even with the stock ID1 QC)

Back to top |

leileilol Joined: 15 Oct 2004 Posts: 1321 |

Posted: Sat Oct 20, 2007 10:59 pm Post subject: |

fteqcc has issues with functions like trace_plane_normal though _________________

Back to top |

Nash Joined: 19 Oct 2007 Posts: 95 Location: Kuala Lumpur, Malaysia |

Posted: Sun Oct 21, 2007 8:14 am Post subject: |

Yeah I went back with FrikQCC because FTEQCC doesn't support arrays.

Back to top |

Chris Joined: 05 Aug 2006 Posts: 78 |

Posted: Mon Oct 29, 2007 7:37 pm Post subject: |

FTEQCC supports arrays just fine.

Code:
float NUMBER_OF_SLOTS = 12; .entity myslot[NUMBER_OF_SLOTS]; /* FTE compiler arrays, you must use fteqcc to compile this */

Then in a function...

Code:
for(nCnt = 0; nCnt < NUMBER_OF_SLOTS; nCnt++) { self.(myslot[nCnt]) = spawn(); self.(myslot[nCnt]).owner = self; }

stuff about FTEQCC arrays:
* they can only be declared globally, no
local entity army_array[50]; etc
* You cannot compare 2 arrays unless referenced as a pointer using an entity, in example:
Valid:

Code:
local entity slot, slotb; slot = self.(myslot[(self.activeslot - 1)]); slotb = self.(myslot[(self.activeslot)]); slot.power = slotb.power;

Invalid:

Code:
self.(myslot[(self.activeslot - 1)]).power = self.(myslot[(self.activeslot)]).power;

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> QuakeC Programming | All times are GMT Goto page 1, 2 Next
Page 1 of 2

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group