ULX

Author Topic: ULX Forced download Issues  (Read 4775 times)

0 Members and 1 Guest are viewing this topic.

Offline CaptainMaim

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
ULX Forced download Issues
« on: November 25, 2008, 04:40:52 AM »
I'm having some troubles getting my dedicated server to do a forced download using "ulx addForcedDownload", I'm not sure exactly what to enter in.  Here's the line I've got:

ulx addForcedDownload "addons/TiledBlocks/" 1

This line causes this crash when a client joins:

Host_Error: Overflow error writing string table baseline modelprecache


I'm not certain exactly how to do this.  I've tried putting the full path in and it says it cannot find that file.  I want it to send a whole addon directory so I can have this small but highly useful building pack in common with my guests (since most don't come to me with it.)

What do I do?

There's a list that appears on the server console (server console is frozen.)  It's not logged so I can't paste but it's listing a bunch of files.  I'm not sure where they are, models, materials and sprites, some 144 of them. 


Addendum:

Here's another try this time I joined and immediately disconnected.

It spews the file contents of that directory and says each file didn't exist:
didn't exist!

SAMPLE:
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x16.jpg didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x175.ani didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x175.jpg didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x2.ani didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x2.jpg didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x24.ani didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x24.jpg didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x3.ani didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x3.jpg didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x32.ani didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x32.jpg didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x4.ani didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x4.jpg didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x5.ani didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x5.jpg didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x6.ani didn't exist!
[resource.AddFile] File addons\TiledBlocks\models\hunter\plates\plate025x6.jpg didn't exist!

And if I let it try to join for anything longer than a second it crashes again.

If I enter this:

ulx addForcedDownload "L:/games/Gmod Dedicated Server/Server/orangebox/garrysmod/addons/TiledBlocks" 1

Using the full path I get this: 

ULX Config Error: Tried to add a nonexistant file to forced downloads 'L:/games/Gmod Dedicated Server/Server/orangebox/garrysmod/addons/TiledBlocks'

That will let me join but the download fails.
« Last Edit: November 25, 2008, 04:49:12 AM by CaptainMaim »

JamminR_Not_At_home

  • Guest
Re: ULX Forced download Issues
« Reply #1 on: November 25, 2008, 09:37:42 AM »

Offline CaptainMaim

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: ULX Forced download Issues
« Reply #2 on: November 25, 2008, 12:44:30 PM »
So...  I just put in:

ulx addForcedDownload "TiledBlocks" 1

Questionmark

I'm hoping I don't have to get explicit with the files I want to get. 


Nope that command didn't work.  :(   I don't really need to send ALL the models I just wanted to send this 5 meg pack.  Does that mean I have to explicitly state the name of EVERY file in said pack?  Since telling it to send all materials files would be way more than I want or need to push at the user.

Can I at least use wildcards?


Addendum:

I moved it out of addons and put it in a "ForcedDL" directory, pointed ulx at it, and it looks like it found them, but at entry 3925 it crashed and said:

Host_Error: Overflow error writing string table baseline downloadables.
« Last Edit: November 25, 2008, 01:33:56 PM by CaptainMaim »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Forced download Issues
« Reply #3 on: November 25, 2008, 03:06:50 PM »
So...  I just put in:

ulx addForcedDownload "TiledBlocks" 1
<clip>
name of EVERY file in said pack?  Since telling it to send all materials files would be way more than I want or need to push at the user.

No. Addons are virtual folders. You _could_ use
"TiledBlocks/models" 1
"TiledBlocks/materials" 1
...
 IF you place it back in addons.

Can I at least use wildcards?
Actually, I don't remember.
 I'll look over the code later, unless one of my team mates answers first.
My first gut reaction is 'no'. I think that's why we added the recursive function.



I moved it out of addons and put it in a "ForcedDL" directory, pointed ulx at it, and it looks like it found them, but at entry 3925 it crashed and said:

Host_Error: Overflow error writing string table baseline downloadables.

Probably Gmod's way of saying 'too many!'
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Forced download Issues
« Reply #4 on: November 25, 2008, 03:11:07 PM »
Scratch my answer originally.
It's been so long since I've run a server.
Team, If there is no sub folder to his tiledblocks/models folder, will the way I suggest work?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline CaptainMaim

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: ULX Forced download Issues
« Reply #5 on: November 25, 2008, 04:49:59 PM »
There is a subdirectory.
Still I'd like to know if there wasn't would it still work. 

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Forced download Issues
« Reply #6 on: November 25, 2008, 06:32:33 PM »
/models/<thesub> would work.
Problem lies if is there is also TiledBlocks/models/file1 ... file2... <thesub>/file1
You could get the sub easily, but, getting each file would be the challenge.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline CaptainMaim

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: ULX Forced download Issues
« Reply #7 on: November 26, 2008, 03:08:16 PM »
Why does it have to be setup this way?  Why can't I just tell it to get everything in addons/TiledBlock ? 

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Forced download Issues
« Reply #8 on: November 26, 2008, 03:53:31 PM »
Because Garry designed addon folders to be virtual.
<addon name>/<folder here that would normally be in a installed Source game>
<addon>/lua
<addon>/models
<addon>/materials
(and the folder types go on and on)
If you look at your addons of any sort, you'll see the pattern. All look like what would normally be put in an installed game.
Garry just wrote addon folders so developers and users of the addons would have an easy way to place them and back them up/remove them if needed.
He originally had a way to 'disable' them through the gui menu in Gmod 9. Not sure why that got removed.
Imagine having 20 material files installed into your normal game directory /materials folder.
You have to re-install Gmod. If the material author didn't make an easy way to see which 20 files were part of his mod, you'd have to delete the files manually, then re-install, then figure out what mod you got the files from.
There is no easy way to download addons because of their virtual nature.
« Last Edit: November 26, 2008, 03:55:48 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming