Discussion:
Hud Clock
qudos qudos
2005-03-29 11:37:06 UTC
Permalink
I've tried to implement the clock folowwing this basic guide:

http://www.quakesrc.org/forums/viewtopic.php?t=4710

Of course fails in "_strtime" , "_strtime" gets the time from windows

How must to be done in linux for get the time?
Marc Poulhiès
2005-03-29 11:42:07 UTC
Permalink
Post by qudos qudos
How must to be done in linux for get the time?
Hi,

Maybe you should read man page for strfime and friend?

I hope this can help,

Marc
Marc Poulhiès
2005-03-29 11:45:09 UTC
Permalink
Post by Marc Poulhiès
Maybe you should read man page for strfime and friend?
strftime of course ;)

Sorry,
Marc
qudos qudos
2005-03-29 14:50:24 UTC
Permalink
Hi,

Well i tried it but i get some errors about "few arguments to
function strftime"

Thanks
Post by Marc Poulhiès
Post by Marc Poulhiès
Maybe you should read man page for strfime and friend?
strftime of course ;)
Sorry,
Marc
Marc Poulhiès
2005-03-29 14:54:49 UTC
Permalink
Post by qudos qudos
Hi,
Well i tried it but i get some errors about "few arguments to
function strftime"
Yes, I did not check what the _strtime should return and what it
expects. But from the strftime man, you can find a similiar function I
think (see the "SEE ALSO" at the end). If you can't find an exact match,
maybe you could try to understand how to use these function to achieve
the same thing?

Marc
qudos qudos
2005-03-29 16:40:49 UTC
Permalink
Hi

Well, i'm not a programer or coder, i don know anything related about
functions,....

No man page for 'strftime' in my linux box, by inet i've found the man
page but i don't know what to put.
Post by Marc Poulhiès
Post by qudos qudos
Hi,
Well i tried it but i get some errors about "few arguments to
function strftime"
Yes, I did not check what the _strtime should return and what it
expects. But from the strftime man, you can find a similiar function I
think (see the "SEE ALSO" at the end). If you can't find an exact match,
maybe you could try to understand how to use these function to achieve
the same thing?
Marc
Nick Warne
2005-03-29 16:55:47 UTC
Permalink
Post by qudos qudos
Hi
Well, i'm not a programer or coder, i don know anything related about
functions,....
Time to learn :D

http://www.quakesrc.org/tutorials/old/17

That is a simple clock in the console, and a nice way to learn to start coding
Quake2 stuff.

Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
qudos qudos
2005-03-29 17:26:32 UTC
Permalink
Hi and thanks again Marc

We have the same '_strtime' issue, i'd already get implemented the
console clock (from quake2forge) but only works in the basic quake2,
not under quake2max :/

I see better option the clock in the hud than console.
Post by Nick Warne
Post by qudos qudos
Hi
Well, i'm not a programer or coder, i don know anything related about
functions,....
Time to learn :D
http://www.quakesrc.org/tutorials/old/17
That is a simple clock in the console, and a nice way to learn to start coding
Quake2 stuff.
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
qudos qudos
2005-05-20 17:24:44 UTC
Permalink
Finally done :)

http://qudos.quakedev.com/linux/quake2/engines/icculus/Quake-2.Clock-Hud.Linux.txt
Post by qudos qudos
Hi and thanks again Marc
We have the same '_strtime' issue, i'd already get implemented the
console clock (from quake2forge) but only works in the basic quake2,
not under quake2max :/
I see better option the clock in the hud than console.
Post by Nick Warne
Post by qudos qudos
Hi
Well, i'm not a programer or coder, i don know anything related about
functions,....
Time to learn :D
http://www.quakesrc.org/tutorials/old/17
That is a simple clock in the console, and a nice way to learn to start coding
Quake2 stuff.
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
Brendan Burns
2005-05-20 20:33:22 UTC
Permalink
Cool, thanks!
I'll wrap it in a cvar (so you can turn it on and off) and add it
into icculus CVS

--brendan
Post by qudos qudos
Finally done :)
http://qudos.quakedev.com/linux/quake2/engines/icculus/
Quake-2.Clock-Hud.Linux.txt
Post by qudos qudos
Hi and thanks again Marc
We have the same '_strtime' issue, i'd already get implemented the
console clock (from quake2forge) but only works in the basic quake2,
not under quake2max :/
I see better option the clock in the hud than console.
Post by Nick Warne
Post by qudos qudos
Hi
Well, i'm not a programer or coder, i don know anything related about
functions,....
Time to learn :D
http://www.quakesrc.org/tutorials/old/17
That is a simple clock in the console, and a nice way to learn to start coding
Quake2 stuff.
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
Brendan Burns
2005-05-20 20:36:41 UTC
Permalink
whoops, I just looked at the code and noticed it already is cvar
wrapped. However I'm going to get rid of the else draw empty string
bit in favor of doing nothing...

--brendan
Post by qudos qudos
Finally done :)
http://qudos.quakedev.com/linux/quake2/engines/icculus/
Quake-2.Clock-Hud.Linux.txt
Post by qudos qudos
Hi and thanks again Marc
We have the same '_strtime' issue, i'd already get implemented the
console clock (from quake2forge) but only works in the basic quake2,
not under quake2max :/
I see better option the clock in the hud than console.
Post by Nick Warne
Post by qudos qudos
Hi
Well, i'm not a programer or coder, i don know anything related about
functions,....
Time to learn :D
http://www.quakesrc.org/tutorials/old/17
That is a simple clock in the console, and a nice way to learn to start coding
Quake2 stuff.
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
qudos qudos
2005-05-21 11:34:22 UTC
Permalink
Thanks Brendan,

I have two new nice features to add ;)

http://qudos.quakedev.com/linux/quake2/engines/icculus/Commands_completition_TAB_key.txt

http://qudos.quakedev.com/linux/quake2/engines/icculus/Mouse_wheel_scroll_console.txt

Cheers
Post by Brendan Burns
whoops, I just looked at the code and noticed it already is cvar
wrapped. However I'm going to get rid of the else draw empty string
bit in favor of doing nothing...
--brendan
Post by qudos qudos
Finally done :)
http://qudos.quakedev.com/linux/quake2/engines/icculus/
Quake-2.Clock-Hud.Linux.txt
Post by qudos qudos
Hi and thanks again Marc
We have the same '_strtime' issue, i'd already get implemented the
console clock (from quake2forge) but only works in the basic quake2,
not under quake2max :/
I see better option the clock in the hud than console.
Post by Nick Warne
Post by qudos qudos
Hi
Well, i'm not a programer or coder, i don know anything related about
functions,....
Time to learn :D
http://www.quakesrc.org/tutorials/old/17
That is a simple clock in the console, and a nice way to learn to start coding
Quake2 stuff.
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
Ludwig Nussel
2005-05-23 14:57:24 UTC
Permalink
Post by qudos qudos
I have two new nice features to add ;)
http://qudos.quakedev.com/linux/quake2/engines/icculus/Commands_completition_TAB_key.txt
http://qudos.quakedev.com/linux/quake2/engines/icculus/Mouse_wheel_scroll_console.txt
diff -u oldfile newfile > patch
cvs diff -u > patch

or

http://savannah.nongnu.org/projects/quilt

cu
Ludwig
--
(o_ Ludwig.Nussel at gmx.de
//\
V_/_ PGP Key ID: FF8135CE
qudos
2005-05-23 15:23:32 UTC
Permalink
Hi,

Well, i have a little problem, i can't login into icculus cvs because
(i guess) my proxy.

I'm working upon q2-r0.16.2 and i know anything about the q2-icculus
progress so the patches can work or not .

I can do the patch and upload it to my site, but always from q2-r0.16.2.

Cheers.
Post by Ludwig Nussel
Post by qudos qudos
I have two new nice features to add ;)
http://qudos.quakedev.com/linux/quake2/engines/icculus/Commands_completition_TAB_key.txt
http://qudos.quakedev.com/linux/quake2/engines/icculus/Mouse_wheel_scroll_console.txt
diff -u oldfile newfile > patch
cvs diff -u > patch
or
http://savannah.nongnu.org/projects/quilt
cu
Ludwig
--
(o_ Ludwig.Nussel at gmx.de
//\
V_/_ PGP Key ID: FF8135CE
Loading...