Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 11 12 13 14 15 … 18 Next »
[Help] Include/Requiring
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
[Help] Include/Requiring
27-08-2015, 06:09 PM,
#6
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: [Help] Include/Requiring
There's no need for a delay. Just place the require statements in the right order, i.e:
--@name StarOS
--@author SuperPlayer
--@requirecl lib/gui/GUILib_Main.txt
--@require lib/staros/StarOSLib_Main.txt
--@updater STEAM_0:0:74694146
--@shared
and then get rid of the delay in the GUILib_Main file too.

I would also avoid requireAll() completely for a proper dynamic load system and use the result of getScripts() to load your files from lib/staros/modules in a well defined order (alphabetically for example). Having to set a delay should be sending warning signs in your head saying "this is wrong and should not be this awkward". Tongue
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
[Help] Include/Requiring - by SuperPlayer - 27-08-2015, 03:05 PM
RE: [Help] Include/Requiring - by rouing - 27-08-2015, 04:37 PM
RE: [Help] Include/Requiring - by SuperPlayer - 27-08-2015, 04:51 PM
RE: [Help] Include/Requiring - by Person8880 - 27-08-2015, 05:56 PM
RE: [Help] Include/Requiring - by SuperPlayer - 27-08-2015, 05:59 PM
RE: [Help] Include/Requiring - by Person8880 - 27-08-2015, 06:09 PM
RE: [Help] Include/Requiring - by SuperPlayer - 28-08-2015, 12:52 PM
RE: [Help] Include/Requiring - by Person8880 - 28-08-2015, 06:32 PM
RE: [Help] Include/Requiring - by SuperPlayer - 28-08-2015, 06:47 PM
RE: [Help] Include/Requiring - by Person8880 - 28-08-2015, 06:52 PM
RE: [Help] Include/Requiring - by SuperPlayer - 22-09-2015, 09:43 PM
RE: [Help] Include/Requiring - by TheOneAndOnlyTee - 22-09-2015, 11:46 PM
RE: [Help] Include/Requiring - by SuperPlayer - 22-09-2015, 11:57 PM
RE: [Help] Include/Requiring - by TheOneAndOnlyTee - 23-09-2015, 12:15 AM
RE: [Help] Include/Requiring - by Person8880 - 23-09-2015, 05:38 PM
RE: [Help] Include/Requiring - by Destiny's Player - 23-09-2015, 05:57 PM
RE: [Help] Include/Requiring - by Person8880 - 23-09-2015, 06:11 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.