Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Cannot get cl_simpleitems_postfix to work

#1
As far as I understand, cl_simpleitems_postfix allows me to load different models in place of the defaults.
For example, considering the following files:

model.md3 (default)
model_simple.iqm (included in release)
model_foo.iqm

Then cl_simpleitems_postfix "_foo" should cause model_foo.iqm to be loaded in place of model.md3.
However, Xonotic seemingly ignores the cvar and always loads the models with the "_simple" postfix.

I've attached a test case, which should replace the health models with red squares when you set
Code:
cl_simple_items 1
cl_simpleitems_postfix "_foo"

Does the test case work correctly for anyone?
Is my setup incorrect?
Is this a bug?

Any help is appreciated.


Attached Files
.pk3   simplehealth_foo.pk3 (Size: 4.63 KB / Downloads: 2)
Reply

#2
Looking at deox's simple items pack, it comes to my mind that you should name your file: model_simple_foo. The game may be looking at the second sufix.
erebus minstanex erebus Angel
Reply

#3
(09-08-2014, 01:32 AM)Pendulla Wrote: Looking at deox's simple items pack, it comes to my mind that you should name your file: model_simple_foo. The game may be looking at the second sufix.
I gave it a try, to no avail. According to the code, it should only add the given postfix to the name, without a "_simple" in the middle.
But I cannot find the cause of the failure to load the "_foo" models.

deox's pack rewrites the existing "_simple" skin files, which is the only method I know to work.
However, that causes a competition of resources, forcing players to handle file conflicts of multiple icon sets.
Reply

#4
Yeah, the code is broken due to a typo. Commit 900a3c0 introduced the postfix cvar, but notice that it is wrongly named:
Code:
var string autocvr_cl_simpleitems_postfix = "_simple";
This should read "autocvar". This means that the QC variable doesn't point to the right cvar, hence the constant value.

I'm reporting this to the bug tracker, that's a good excuse to try and use gitlab Smile

EDIT: There it is, https://gitlab.com/xonotic/xonotic/issues/86
Reply

#5
(09-08-2014, 01:57 AM)sev Wrote: deox's pack rewrites the existing "_simple" skin files, which is the only method I know to work.
However, that causes a competition of resources, forcing players to handle file conflicts of multiple icon sets.

yeah, i tested this with Mario when investigating alternatives, and found the cvar was rendered useless. So, I just overwrote the files.
Reply

#6
(09-08-2014, 01:24 PM)Mr. Bougo Wrote: This should read "autocvar". This means that the QC variable doesn't point to the right cvar, hence the constant value.

Yes, that's it, thank you very much. With the "a" inserted, it works correctly. I should have noticed that myself, sorry for the extra work.
Since you asked for repository access, I assume you already made the fix, ready to be pushed. Otherwise, I'll give it a shot.


(09-08-2014, 02:06 PM)deoxys Wrote: yeah, i tested this with Mario when investigating alternatives, and found the cvar was rendered useless. So, I just overwrote the files.

With the fix, every set can use its own models, enabling players to easily switch between them.
Reply

#7
i'm aware, good. This seems like a good time to bring up the problems smilecythe and some others have had, that simple items dont show up with r_showsurfaces 3 (i believe that was what it was).
Reply

#8
(09-08-2014, 03:01 PM)deoxys Wrote: i'm aware, good. This seems like a good time to bring up the problems smilecythe and some others have had, that simple items dont show up with r_showsurfaces 3 (i believe that was what it was).

Well, r_showsurfaces replaces all shaders with single colors. If the simple model is just a square with a "deformVertexes autosprite" shader, you end up with a colored square.
Someone will have to make actual 3D models to make them work with r_showsurfaces.
Reply

#9
haha no not happening that's ridiculous
Reply

#10
(09-08-2014, 02:14 PM)sev Wrote: Yes, that's it, thank you very much. With the "a" inserted, it works correctly. I should have noticed that myself, sorry for the extra work.
Since you asked for repository access, I assume you already made the fix, ready to be pushed. Otherwise, I'll give it a shot.

No sweat, I noticed it as soon as I looked at the code. I didn't make the fix, so if you have repo access, feel free to push it. I say the first one of us who has time for that should do it and update this thread Smile

I'll try to remember tomorrow.

EDIT: As for r_showsurfaces, damn, that's a good point. I don't think much can be done about that! r_showsurfaces is originally meant to be a debugging feature...
Reply

#11
(09-08-2014, 05:52 PM)Mr. Bougo Wrote: I didn't make the fix, so if you have repo access, feel free to push it. I say the first one of us who has time for that should do it and update this thread Smile

Done. At least I think so, I'm new to gitlab as well Big Grin
Reply

#12
(09-08-2014, 05:52 PM)Mr. Bougo Wrote: EDIT: As for r_showsurfaces, damn, that's a good point. I don't think much can be done about that! r_showsurfaces is originally meant to be a debugging feature...

i know, but it's smilecythe's preference to set the graphics that way for competitive play for some insane reason, so i tried to provide for him Tongue
Reply

#13
Closed issue #86, thanks sev.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [NEED HELP] How to get pass level 25? Dejta 0 324 07-21-2024, 07:34 AM
Last Post: Dejta
  [NEED HELP] Cannot follow "Capturing Your Favorite Xonotic Moments" dtomvan 1 1,356 10-09-2022, 03:57 PM
Last Post: BuddyFriendGuy
  [NEED HELP] Cannot launch xonotic-linux64-dedicated server (v0.8.5) in Ubuntu18.04 ff8eyes 3 3,037 08-13-2022, 02:43 AM
Last Post: FAF
  [NEED HELP] My mouse binds do not work in GLX? FAF 5 2,276 07-29-2022, 08:39 AM
Last Post: FAF
  [NEED HELP] Sudden loss of sound in Xonotic, can not get it to return. SeveredinTwain 5 4,775 03-26-2020, 05:55 AM
Last Post: FAF
  [SOLVED] how can i get defrag entities in netradiant? bananovenc 5 4,510 01-03-2020, 11:31 AM
Last Post: SpiKe
  [NEED HELP] cl_gunalign doesn't seem to work on some servers/maps Aguaumreal 2 2,882 09-10-2019, 03:42 AM
Last Post: Aguaumreal
Photo [NEED HELP] How do I get this crosshair (photo) sovietcat 2 3,030 02-23-2019, 03:21 AM
Last Post: sovietcat
Photo [NEED HELP] How do you get this crosshair? sovietcat 0 2,276 02-22-2019, 12:50 PM
Last Post: sovietcat
  [NEED HELP] Buffs Don't Work 3agle427 0 1,680 01-19-2019, 04:46 PM
Last Post: 3agle427

Forum Jump:


Users browsing this thread:
4 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-