Giter Site home page Giter Site logo

load behaviour about darkrpmodification HOT 9 CLOSED

fptje avatar fptje commented on August 16, 2024
load behaviour

from darkrpmodification.

Comments (9)

deinemudda32 avatar deinemudda32 commented on August 16, 2024

oh by the way the language file seems not to load correctly, on fresh restart of my server, the half of the translated file is not in the server, after a mapchange everything is translated.

from darkrpmodification.

FPtje avatar FPtje commented on August 16, 2024

Use hooks.
Also how can half a file not be in the server!?

from darkrpmodification.

FPtje avatar FPtje commented on August 16, 2024

Config files and custom things load later because the module creator can then do stuff before they are loaded. Using hooks the module creator can delay calculation until after the custom shit is loaded. This gives the module creator choice. Loading the modules after the config files would remove that choice since you can't go back in time in Lua.

Also I just tested the language file thing and it works fine for me.

If it works after changelevel then it works after a clean restart. To Lua there is absolutely no difference between a cleanly started server and one that changed level.

from darkrpmodification.

deinemudda32 avatar deinemudda32 commented on August 16, 2024

the half of the translation is just not loaded.
Only If I change the map.
I looked into it, and only the clientside stuff works and the serverside didnt load.

from darkrpmodification.

deinemudda32 avatar deinemudda32 commented on August 16, 2024

an Example is the voterestrictions.lua.
If you drag a custom job into it, it stops working and you get a neat lua error.
It just do conflicts with config files or tables which loads fast as the jobs.lua file. some aren't working anymore.

from darkrpmodification.

FPtje avatar FPtje commented on August 16, 2024

2015-01-28_21-06-53
2015-01-28_21-10-59

Both serverside and clientside stuff works for me when translating. Also, the voterestrictions thing was broken anyway, it used a hook that didn't exist.

from darkrpmodification.

deinemudda32 avatar deinemudda32 commented on August 16, 2024

Hm, how should I fix these scripts, which loads too fast?

from darkrpmodification.

FPtje avatar FPtje commented on August 16, 2024

Use http://wiki.garrysmod.com/page/GM/OnGamemodeLoaded

from darkrpmodification.

deinemudda32 avatar deinemudda32 commented on August 16, 2024

Im really sorry for releasing dumb thread shit :)
I found out 1 minute ago, there is a hook for it
http://wiki.darkrp.com/index.php/Hooks/server/loadcustomdarkrpitems.

I'm really sorry 📦

from darkrpmodification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.