Author Topic: Gamemode.txt item limit  (Read 168 times)

Okay so I'm trying to package a server into a gamemode so it saves me startup time. I'm having an issue where the item limit is stuck at 5 per player and no matter what I put into gamemode.txt it doesn't fix this and I need to have 60 items in the map.
Quote
$Server::Quota::Item   integer   5 : 100
This is supposed to change it but it doesn't have any impact.

i think its supposed to be like this (taken verbatim from a gamemode i have)
Code: [Select]
$Server::Quota::Item 999

This is some code buddy gave me and I use it to deal with the quotas in my gamemodes. Put it in a server.cs inside the gamemode


Code: [Select]
function raiseQuotaMax(%start){

    if(%start $= "")
        %start = $Sim::Time;
    if($Sim::Time - %start > 10)
        return;
    $Max::Quota::Misc = 100000;
    $Max::Quota::Item = 100000;
    $Max::Quota::Player = 100000;
    $Max::Quota::Vehicle = 100000;
    $Max::Quota::Schedules = 100000;
    $Max::Quota::Projectile = 100000;
    $Max::Quota::Environment = 100000;
    $Max::MaxPhysVehicles_Total = 100000;
    $Max::MaxPlayerVehicles_Total = 100000;
   
    $Server::Quota::Misc = 100000;
    $Server::Quota::Item = 100000;
    $Server::Quota::Player = 100000;
    $Server::Quota::Vehicle = 100000;
    $Server::Quota::Schedules = 100000;
    $Server::Quota::Projectile = 100000;
    $Server::Quota::Environment = 100000;
    $raiseQuotaMax = schedule(1,0,raiseQuotaMax, %start);
}
raiseQuotaMax();

I'd recommend TableSalt's method for simplicity.