home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


General Thread

by Aardappel on 01/05/2002 01:55, 15499 messages, last message: 12/08/2021 21:22, 8826323 views, last view: 12/09/2021 04:08

for questions, announcements etc.

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages

#14103: I need help for a scoreboard script

by Zehirmahnn on 09/20/2011 00:02

Hello all,
I post this message to ask you help for a scoreboard modification.

First, i apologie about my english, which is not very well ^^

Then, if you take a look in the scoreboard.cpp file, in sauerbraten source code, you\'ll find a line which looks like that :

if(showclientnum || player1->privilege>=PRIV_MASTER)
{
g.space(1);
g.pushlist();
g.text(\"cn\", fgcolor);
loopscoregroup(o, g.textf(\"%d\", 0xFFFFDD, NULL, o->clientnum));
g.poplist();
}

It\'s the line that shows you the clients\' cn if you type \"/showclientnum 1\".

I added some lines in this script :

if(showclientfrags && cmode)
{
g.space(1);
g.pushlist();
g.text(\"\", fgcolor);
loopscoregroup(o, g.textf(\"\\f1%d\", 0xFFFFDD, NULL, o->frags));
g.poplist();
}

if(showclientflags && m_ctf)
{
g.space(1);
g.pushlist();
g.text(\"\", fgcolor);
loopscoregroup(o, g.textf(\"\\f0%d\", 0xFFFFDD, NULL, o->flags));
g.poplist();
}

Thanks to them, i can see clients\' frags in capture modes and clients\' flags in ctf modes.

But when i add this line :

if(showclientdeaths)
{
g.space(1);
g.pushlist();
g.text(\"\", fgcolor);
loopscoregroup(o, g.textf(\"\\f3%d\", 0xFFFFDD, NULL, o->deaths));
g.poplist();
}

It doesn\'t works, for every player, i see \"0\" instead of the number of deaths. It only works for me, i can see my number of deaths.

Could someone help me ??

reply to this message

#14104: Re: unknown model commands 2nd try of posting

by suicizer01 on 09/20/2011 00:34, refers to #14101

After I found some source code (on the internet) about it, I'm pretty sure that "mdlopt" isn't a typo.

Here's a link to it:
http://pastebin.com/g2y54nEi
Here's the link where I've been taking it from:
http://beta.intuxication.org/drmoriarty/willcraft/rev/5099b4411428/

Found out how mdlextendbb works and will post info about it soon.

Tested the command "mdldepthoffset" another time, but without succes, really don't know how it works :S.

The command "mdltranslucent" is an outdated command which seems to be replaced for the "mdlalphatest" command.
I don't know why it's still on the french community website...

Another command is still a mystery. to me, it's called "mdlalphadepth". I've been testing it on a model which has a skin with an alpha-channel, but nothing happened at all.
Any explanation?

reply to this message

#14105: Re: unknown model commands 2nd try of posting

by tempest on 09/20/2011 18:09, refers to #14104

Oh right, I forgot to search in the configs :/

mdlopt is used internally to generate the different model shaders (spec, spec+bumpmap, spec+chrome etc) without having to write it all by hand. So they're not useful unless you write your custom model shaders (can be done, see old hudguns).



mdldepthoffset: no, you can't see the effect directly, only in specific situations. I barely understand it myself, so I can't really explain it to you :P

You can enable it with mdldepthoffset 1 (default is off), and there's a depthoffset variable which presumably controls the effect.


mdlalphadepth: this only affects semi-transparently _rendered_ models (independent of the skin), and from what I can see, it's only used for debris (that gets transparent as it fades out). It might be there to prevent glitches with fireballs or something.

reply to this message

#14106: Re: I need help for a scoreboard script

by tempest on 09/20/2011 18:20, refers to #14103

Unfortunately, you can't get the number of deaths of other clients (i.e. the server doesn't tell you). Theoretically, you could count it on the client side, but that will obviously be incorrect if you join in the middle of a game.

reply to this message

#14107: Re: I need help for a scoreboard script

by Zehirmahnn on 09/20/2011 19:07, refers to #14103

Yeah, that\'s what i thought, but on most of servers, you can type the #stats command, and there you got the number of deaths of other players, the server sent it to you...

reply to this message

#14108: Re: unknown model commands 2nd try of posting

by suicizer01 on 09/20/2011 19:55, refers to #14105

I don't want to be a questionvampire,
that's why check out explanation of all commands (exept the command "mdlname" and a few others that I may be oversighted) on here:
http://www.quadropolis.us/node/3091
Just press it's download link for the config-prefab instead of the gui.

Now back to questioning,

So that actually means "mdlopt" is a "support" command for "mdlshader"?
I'm wondering if it's possible to have an .md2-based model be bump-mapped.
Any idea if the bump-map should have a specific name :S?
I'm very sure it's not commented in the references, since I've read that A LOT.
How I came with this idea, that's because you can define in the "mdlshader" command that you would like to use a bumpmap, but it simply doesn't let you render.
Is that true :S?

I failed at asking the previous time, but about the command "mdlname":
- Why does it actually exist :S?
- What's it's purpose?
Is that true :S?

I failed at asking the previous time, but about the command \"mdlname\":
- Why does it actually exist :S?
- What\'s it\'s purpose?

reply to this message

#14109: Re: I need help for a scoreboard script

by tempest on 09/20/2011 21:29, refers to #14107

Those servers are modified so they recognize certain commands (usually starting with a hash) from the chat and send text back to you (stats, for example).

reply to this message

#14110: Re: unknown model commands 2nd try of posting

by tempest on 09/20/2011 22:01, refers to #14108

It's alright to ask - if it gets too much, I'll just stop replying :P Seriously now, you made me look at some things I've never seen before.

"How I came with this idea, that's because you can define in the "mdlshader" command that you would like to use a bumpmap, but it simply doesn't let you render."
Yes. You can put "mdlshader bumpmasksmodel" in the config, and the shader will be used. However, the engine won't provide a normalmap texture to the shader, so it won't work. If you want a bump-mapped static model, you'll have to use obj or md3.


mdlname: that's a command you can call from the model config to get the name of the model currently being loaded. Useful if one configuration is called from several others. Used to load team-colored skins for hudgun hands, see e.g. mrfixit/hudguns/md5.cfg

reply to this message

#14111: Re: I need help for a scoreboard script

by Zehirmahnn on 09/21/2011 01:51, refers to #14109

Ok, but it still doesn\'t work on those modified servers...

reply to this message

#14112: Re: I need help for a scoreboard script

by Sub-Zero on 09/21/2011 05:49, refers to #14111

well, it depends on how you are trying to do this.

client>stats
server>stats

client>stats won't give accurate stats because client side cannot grab server info when the server doesn't have any info to give out, so it just records the stats that you start with (0 deaths, ect.)

server>stats will only give you information if you say alter your server sided stuff and run your server, otherwise, you'll have to rely on the mods out there given to you by the people who modded their server to send out info. (it wouldn't be a bad idea for sauer to have that already built in (if it isn't already))

reply to this message

#14113: Freeze

by LionerBrot on 09/23/2011 09:29

Hey Guys i need help with my new sauerbraten justice edition...
every time i play it it only works about 10-15 min and then is freezes and nothing works, only the background sounds are still there... does anyone have an idea ehat the reason could be...
PLEASE ANSWER

LionerBrot

reply to this message

#14114: Re: Freeze

by Razgriz on 09/23/2011 10:08, refers to #14113

A good idea would be to see if there's something specific causing the freeze. See perhaps if your GFX driver crashes when that happens (that's what the black screen is for usually). Check if the memory usage of the executable is within reasonable levels through taskmanager and uh.. dunno.

reply to this message

#14115: Request

by Zetaco on 09/27/2011 03:21

Hi. i am new and I've played around with Cube 2 and i came up with the idea of making a WW2 FPS,problem is i don't know how to model or code. so I'm asking 2 things

1: What is the programming language?

2:can someone make models for me?


If you can make models i need several type for both sides and weapons

Sides: Allies Axis
USA Germany
England
Several
resistance's


The models are: US soldier.German soldier. German officer.US captain.German SS trooper.German SS officer.German soldier (off duty).German soldier (Sniper). US soldier (beach landing).US paratrooper.German soldier (Cap).German soldier (With bandage on head).

Weapons:M1 Garand.Kar 98 K.Thompson.MP 40.Colt 45.Walther P38.Steilhandgrenate.Mk.2 Fragmentation Hand Grenade.Springfield 1903.Gewehr 43 (scoped).BAR.Trench gun M1897.Bazooka.Panzershreck.

Wow thats alot of models Just rig the characters and be sure to code them as ragdolls when they die and ill animate them.(if i can)

Thank you.
Zetaco.

reply to this message

#14116: Cube 2

by Night_Hawk on 09/28/2011 03:34

Hi there, i can't remember what version it was in i think it was trooper but there was like a hide and seek mode.. and you could use your chainsaw to fly high, it could have been the server. Does anyone else remember this?

reply to this message

#14117: Re: Cube 2

by suicizer01 on 09/28/2011 09:54, refers to #14116

I heard about it (and there was a vid on youtube about that, which I found accidental). I'm pretty sure it's been banned from the master server (since such things aren't allowed to eihrul, on the original master server).
Maybe the moved to another master server, just google it or search for it mate.

reply to this message

#14118: Cube 2

by Zamwa on 09/28/2011 17:23

My cheat-sever is still registered but (I'm betting Eihrul hates Me though!) hidden from preying eyes! Only a select few get to know how -! Sorry Eihrul! :")

reply to this message

#14119: Re: Cube 2

by Q009 on 09/28/2011 17:37, refers to #14118

Then prepare to get your server permamently banned from masterserver, because Eihrul said he doesn't want modded (gameplay-wise) servers on Sauerbraten's masterserver.

reply to this message

#14120: Re: Cube 2

by Zamwa on 09/28/2011 19:15, refers to #14119

I got no worries and rest assured that I respect Cube developers and gameplay! I dare not share My mod and or break the game, it would be a violation of My own ethics!

reply to this message

#14121: How to disable blurring of textures

by jsaast on 10/07/2011 03:18

Hi all,

I have been fiddling with the source and was wondering how to disable blurring of textures to get nice crisp edges between texels. I wish someone could give me pointer to that, very much appreciated.

reply to this message

#14122: Re: How to disable blurring of textures

by eihrul on 10/07/2011 04:17, refers to #14121

/reducefilter 0

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages


Post a Message

Username

Email

Subject

Body

6 plus 7 =


content by Aardappel & eihrul © 2001-2021
website by SleepwalkR © 2001-2021
42367072 visitors requested 58072892 pages
page created in 0.133 seconds using 9 queries
hosted by Boost Digital