Page 1 of 1

Bone to pick with Shared Resources

Posted: Sun Jul 29, 2012 2:07 am
by Lion Heart
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?

RE: Bone to pick with Shared Resources

Posted: Sun Jul 29, 2012 2:33 am
by Synert
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?

RE: Bone to pick with Shared Resources

Posted: Sun Jul 29, 2012 3:00 am
by Lion Heart
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.

RE: Bone to pick with Shared Resources

Posted: Sun Jul 29, 2012 2:01 pm
by Synert
When did it happen? Did one of you activate something or pick something up at the time?

RE: Bone to pick with Shared Resources

Posted: Sun Jul 29, 2012 6:22 pm
by Lion Heart
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...

RE: Bone to pick with Shared Resources

Posted: Mon Jul 30, 2012 5:34 am
by Ijon Tichy
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_"?

RE: Bone to pick with Shared Resources

Posted: Mon Jul 30, 2012 6:38 pm
by Lion Heart
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.

RE: Bone to pick with Shared Resources

Posted: Tue Jul 31, 2012 5:30 am
by Ijon Tichy
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;
}

RE: Bone to pick with Shared Resources

Posted: Tue Jul 31, 2012 10:57 pm
by Lion Heart
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.

RE: Bone to pick with Shared Resources

Posted: Wed Aug 01, 2012 4:12 am
by Ijon Tichy
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