Bone to pick with Shared Resources

General help and assistance forum.
Post Reply
Lion Heart
 
Posts: 25
Joined: Sat Jun 16, 2012 4:31 am
Location: Texas
Contact:

Bone to pick with Shared Resources

#1

Post by Lion Heart » Sun Jul 29, 2012 2:07 am

I'm trying to host Ultimate DOOM server with Shared Resources. The first map plays ok, but when I get to E1M2, a little ways in, it takes all my ammo, and all the counters say 0/0. What the hell is going on?
HA! Take that, Moon. Made of Cheese, my ass!

Synert
Forum Regular
Posts: 228
Joined: Mon Jun 04, 2012 12:54 pm
Contact:

RE: Bone to pick with Shared Resources

#2

Post by Synert » Sun Jul 29, 2012 2:33 am

No love for the thread :(

I just played through the map with no issues whatsoever. Whereabouts is it taking your ammo, did you do anything at the time, what other wads are on the server (if any) and are you playing with other players/bots?

Lion Heart
 
Posts: 25
Joined: Sat Jun 16, 2012 4:31 am
Location: Texas
Contact:

RE: Bone to pick with Shared Resources

#3

Post by Lion Heart » Sun Jul 29, 2012 3:00 am

Synert wrote: No love for the thread :(

I just played through the map with no issues whatsoever. Whereabouts is it taking your ammo, did you do anything at the time, what other wads are on the server (if any) and are you playing with other players/bots?


I was playing normally, that was the only PWad, and I was playing with one other person, and he said he lost his ammo too.
HA! Take that, Moon. Made of Cheese, my ass!

Synert
Forum Regular
Posts: 228
Joined: Mon Jun 04, 2012 12:54 pm
Contact:

RE: Bone to pick with Shared Resources

#4

Post by Synert » Sun Jul 29, 2012 2:01 pm

When did it happen? Did one of you activate something or pick something up at the time?

Lion Heart
 
Posts: 25
Joined: Sat Jun 16, 2012 4:31 am
Location: Texas
Contact:

RE: Bone to pick with Shared Resources

#5

Post by Lion Heart » Sun Jul 29, 2012 6:22 pm

Synert wrote: When did it happen? Did one of you activate something or pick something up at the time?


Well, when I was playing by myself, I did happen to lose my ammo AFTER I picked up a backpack...
HA! Take that, Moon. Made of Cheese, my ass!

Ijon Tichy
Frequent Poster Miles card holder
Posts: 901
Joined: Mon Jun 04, 2012 5:07 am

RE: Bone to pick with Shared Resources

#6

Post by Ijon Tichy » Mon Jul 30, 2012 5:34 am

that would suggest that shared_bpakmult was 0, which would get the effect you just showed
mind posting the values of all cvars starting with "shared_"?

Lion Heart
 
Posts: 25
Joined: Sat Jun 16, 2012 4:31 am
Location: Texas
Contact:

RE: Bone to pick with Shared Resources

#7

Post by Lion Heart » Mon Jul 30, 2012 6:38 pm

Ijon Tichy wrote: that would suggest that shared_bpakmult was 0, which would get the effect you just showed
mind posting the values of all cvars starting with "shared_"?


All I did was start up a server. I didn't really configure any of the Shared_ cvars, so they would all be at their default values, I assume.
Last edited by Lion Heart on Mon Jul 30, 2012 6:38 pm, edited 1 time in total.
HA! Take that, Moon. Made of Cheese, my ass!

Ijon Tichy
Frequent Poster Miles card holder
Posts: 901
Joined: Mon Jun 04, 2012 5:07 am

RE: Bone to pick with Shared Resources

#8

Post by Ijon Tichy » Tue Jul 31, 2012 5:30 am

well, then shared_bpakmult would be 2, and this wouldn't have occured
basically post it anyawy, it might not have set (which is a different bug but w/e)

here's the code that scales the max ammo when you have a backpack, btw

Code: Select all

function int adjustBackpack(int amount, int team)
{
    int bI = GetCVar("shared_bpakmult");
    int bF = GetCVar("shared_bpakmult_frac");

    int b  = (bI << 16) + ((bF << 16) / 100);

    int bMult = ( (b - 1.0) * backpack[team]) + 1.0;

    return (amount * bMult) >> 16;
}
Last edited by Ijon Tichy on Tue Jul 31, 2012 5:31 am, edited 1 time in total.

Lion Heart
 
Posts: 25
Joined: Sat Jun 16, 2012 4:31 am
Location: Texas
Contact:

RE: Bone to pick with Shared Resources

#9

Post by Lion Heart » Tue Jul 31, 2012 10:57 pm

Ijon Tichy wrote: well, then shared_bpakmult would be 2, and this wouldn't have occured
basically post it anyawy, it might not have set (which is a different bug but w/e)

here's the code that scales the max ammo when you have a backpack, btw

Code: Select all

function int adjustBackpack(int amount, int team)
{
    int bI = GetCVar("shared_bpakmult");
    int bF = GetCVar("shared_bpakmult_frac");

    int b  = (bI << 16) + ((bF << 16) / 100);

    int bMult = ( (b - 1.0) * backpack[team]) + 1.0;

    return (amount * bMult) >> 16;
}


Ok, how do I change the value of the backpack cvar, is what i'm looking for. Because shared_bpakmult 2 doesn't work.
HA! Take that, Moon. Made of Cheese, my ass!

Ijon Tichy
Frequent Poster Miles card holder
Posts: 901
Joined: Mon Jun 04, 2012 5:07 am

RE: Bone to pick with Shared Resources

#10

Post by Ijon Tichy » Wed Aug 01, 2012 4:12 am

if you mean it's saying something about no such variable "shared_bpakmult", then I would do "unset shared_limitsexist" and restart the map - this will cause shared resources to assume that no variables exist and reassign all of them

otherwise i have no clue
Last edited by Ijon Tichy on Wed Aug 01, 2012 4:15 am, edited 1 time in total.

Post Reply