Pivity

GOLD RUSH - Procedurally Generated Mining System

Last read Never
#1

This is the official discussion thread for the script

The script can be found here: https://www.gmodstore.com/market/view/cGIuDLnsTQ2z9JA0UIhJew

So, before i even start im going to say upfront that this is a bit of a late thread to be created due to how long the script has been posted and here is the reason i am creating it now:

  1. 1000 Char limit in the discussion page, that if exceeded deletes the previously written message and then notifies you of said action
  2. I've Removed the DRM completely, since securegmod is dead ( and by the looks of things has been for a while )


Any suggestions that haven't been already mentioned are welcome here, along with any questions . I will be happy to answer them here and add them to the knowledge base :)

#2

Well, hello there!


While your script looks very nice, it also seems to be a very complicated script.

The problem I have with this would be - how does it perform? Does it drain to much power from the server?

To conclude: What can you say about the performance on MP Servers.

#3

Bilbo

Well , the code itself was written to not be very taxing on the server ( due to how much of it there is, writing quick and dirty code simply wouldn't work on a addon of this scale ) so i avoided as much as possible the think functions and generally cheap code.

As far as performance i cant really notice any impact as far as lag goes i havent gotten any complaints about lag so far so take that as as you will, but again, if you do notice a impact ( which you really shouldn't ) i'd be happy to assist :)

Hope i answered your question

#4

any current servers that have this addon?

Friendly x 1
#5

AntonioMudkips The one im working on will in a few days as part of a update, aside from that it's up to you to find one :p

#6

hello i have bug with bleur menu :


[ERROR] addons/bleur_menu/lua/autorun/bleur_menu/cl_categorisedjobs.lua:174: attempt to get length of field 'weapons' (a nil value)

 1. loadPanels - addons/bleur_menu/lua/autorun/bleur_menu/cl_categorisedjobs.lua:174

  2. unknown - addons/bleur_menu/lua/autorun/bleur_menu/cl_vgui.lua:58


---------------------------------------------------------------------------------------------------------

--174         if #data.weapons > 0 then

            text = text .. "\n\nWeapons: " .. string.Implode( ", ", data.weapons )

         end

----------------------------------------------------------------------------------------------------------

function PANEL:OnMousePressed()

   if self:GetParent().currentTab == self.tab.name then

      return

   end


   for _, panel in pairs ( self:GetParent().tabContents:GetChildren() ) do

      panel:Remove()

   end

   self:GetParent().currentTab = self.tab.name

--58   self.tab.loadPanels( self:GetParent().tabContents, self:GetParent().filter )

   surface.PlaySound( "buttons/lightswitch2.wav" )

end

Funny x 1Confused x 1Dumb x 1
#7

addons/bleur_menu/lua/autorun/bleur_menu/ That's not my addon that's throwing the error as per indicated by the name of the source of the error

Funny x 1
#8

yes but the probleme its no spawn with weapons if i take job how add weapons

Confused x 1
#9

The weapons get added automatically to the F4 menu when the server boots up, if they arent there i assume something broke the hook ( probably returned a value when it shouldn't have) that's to be called when the gamemode is loading custom weapons. Try running without bleur_menu or just run gold rush standalone to confirm it's not a issue with the addon itself ( fairly certain my addon doesn't conflict with the base gamemode but hey you test it as you please ).

#10

local function AddKZGR()


   TEAM_GOLDRUSH = DarkRP.createJob(KZoneGoldRush.DarkRPJob.Name, {

      color = KZGRFN.TableToMetaColor( KZoneGoldRush.DarkRPJob.Color),

      model = KZoneGoldRush.DarkRPJob.Model,

      description = KZoneGoldRush.DarkRPJob.Description,

      weapons = {"weapon_arc_atmcard"}, ---------------------------------- i add the line and its good (for bleur menu)

      command = "goldrushjob",

      max = KZoneGoldRush.DarkRPJob.Max, -- at most 70% of the players can have this job. Set to a whole number to set an absolute limit.

      salary = KZoneGoldRush.DarkRPJob.Salary,

      vote = KZoneGoldRush.DarkRPJob.Vote,

      hasLicense = KZoneGoldRush.DarkRPJob.StartsWithGunLicensce,

      maxpocket = KZoneGoldRush.DarkRPJob.PocketSize,

      admin = 0,

      candemote = KZoneGoldRush.DarkRPJob.CanBeDemoted,


      category = KZoneGoldRush.General.F4CategoryName, -- The name of the category it is in. Note: the category must be created!

      sortOrder = 100 -- The position of this thing in its category. Lower number means higher up.


      --buttonColor = Color(255, 255, 255, 255), -- The color of the button in the F4 menu

      --label = "Super job", -- Optional: the text on the button in the F4 menu

   })

Users viewing this thread
Nobody