[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
hldj.org • View topic - Filesize error for custom scripts

Filesize error for custom scripts

Report any bugs you find using HLDJ

Filesize error for custom scripts

Postby Toad King » Mon Jul 12, 2010 4:34 am

Toad King
Game DJ
 
Posts: 5
Joined: Mon Jul 12, 2010 3:39 am

Re: Filesize error for custom scripts

Postby Renegade » Tue Jul 13, 2010 8:58 am

I've noticed it too and am pretty sure it's a Source quirk. From the topic you linked, I had concluded it occurred with empty scripts (although in the linked topic, they were empty due to a bug); however it's interesting that this happens even if your hldj_custom.cfg constains commands. The important thing is that it still executes those commands, but I'll keep an eye on it. If it poses a problem, I'll copy hldj_custom instead of linking it.

Also, just to confirm for alpha9 purposes, HLDJ now works in every case, even if not running as admin?
A few curious things:
* if symbolic linking fails, it should attempt to hardlink (with copying being the last resort). I'm hoping this is what it did. You can tell if it is a hardlink if you make changes to your hldj_custom.cfg and those changes appear in the hldj_custom.cfg located in the game folder. If not, is your HLDJ located on a different drive than Steam?
* Do you have Administrator permissions on your system?
Renegade
HLDJ Developer
HLDJ Developer
 
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm

Re: Filesize error for custom scripts

Postby Toad King » Tue Jul 13, 2010 1:47 pm

When running without admin privileges, everything works perfectly.

I've noticed when running HLDJ, Exlporer says the size of the symbolic linked files is 0kb, so that might be what's triggering this Source bug. It's not that the symbolic linking fails, it's that Source thinks the size of symbolic linked files is 0 and doesn't run the commands in hldj_custom.cfg. If this only includes keybinds, you only really need to run this script once and it doesn't matter that it fails after that, but my script includes aliases, which need to run every time.

The two directories are on different drives, so hard linking should fail if it ever tries to do it.
Toad King
Game DJ
 
Posts: 5
Joined: Mon Jul 12, 2010 3:39 am

Re: Filesize error for custom scripts

Postby Renegade » Tue Jul 13, 2010 2:42 pm

So it doesn't execute the commands when hldj_custom.cfg is symbolic linked? In that case it is a problem.
If you open the created link in notepad, does it correctly display the contents of your hldj_custom.cfg? As long as the link isn't broken, the game should really only see the target file, but if is causing problems, then I will copy it instead.

I'm not sure why symbolic link privileges are being denied (if you are an admin), but one thing you can try to avoid having to run-as-admin all the time is: http://www.informit.com/guides/content. ... seqNum=762

Another suggestion is to place HLDJ on the same drive as your games so you can benefit from hardlinks, which are probably even (negligibly) faster than symbolic links.
Renegade
HLDJ Developer
HLDJ Developer
 
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm

Re: Filesize error for custom scripts

Postby Toad King » Tue Jul 13, 2010 3:30 pm

The symbolic links are being made okay, and I can open them up just fine and they display the contents of the script fine in Notepad. It's just that Source gives that 1 MB file error when I try to execute the symbolic linked scripts, so I think copying over the custom script when a hard link can't be made should fix the problem.
Toad King
Game DJ
 
Posts: 5
Joined: Mon Jul 12, 2010 3:39 am

Re: Filesize error for custom scripts

Postby Renegade » Wed Jul 14, 2010 11:35 am

That also explains why the problem doesn't occur on my XP machine (hardlinks only). But to confirm: when it symbolic links the script, the game does not execute any of the commands contained in it (i.e. if you defined any aliases, they are not present in the game)?
Renegade
HLDJ Developer
HLDJ Developer
 
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm

Re: Filesize error for custom scripts

Postby Toad King » Thu Jul 15, 2010 9:07 pm

That's correct. The couple of aliases that my binds use are not made.
Toad King
Game DJ
 
Posts: 5
Joined: Mon Jul 12, 2010 3:39 am

Re: Filesize error for custom scripts

Postby Renegade » Fri Jul 16, 2010 11:33 pm

ok, this should be fixed now in . Let me know if it isn't.
Renegade
HLDJ Developer
HLDJ Developer
 
Posts: 1500
Joined: Sat Mar 01, 2008 2:02 pm

Re: Filesize error for custom scripts

Postby Toad King » Sat Jul 17, 2010 2:16 am

Looks like it's fixed in alpha 10. Thanks for the fast fix.
Toad King
Game DJ
 
Posts: 5
Joined: Mon Jul 12, 2010 3:39 am


Return to Bug Reports



Who is online

Users browsing this forum: No registered users and 1 guest

cron