Author Topic: Client sided script isn't executing automatically.  (Read 730 times)

Right, here's the problem, recently I, Danny Boy and Jes00 have had problems with our scripts not executing. We have to either Execute them manually or make another client.cs which Executes that script for us.

Just to take note, we do include exec("filepath"); in the script that has problems automaticly executing.


NOEDIT; they're client-sided scripts that aren't executing, I think the rest are fine.

This belongs in coding help, dude.

Post the code and file contents file name etc.
;\

I actually get this too.

Sometimes the scripts appear to have executed, but the code works improperly until the code is re-executed.


if anyone can figure out why that'd be nice.

I always use my servercommandgui with the function editor for convienence, and it has never had this problem.

I would suggest putting all the misc client side scripts you want to execute in a separate folder, then make a separate client mod to execute them.

or just get my mod because it does exactly that lol /shamelessselfadvertising

also it is possible you may have namespace issues, because I name all functions nameofmod_nameoffunction and I don't get this problem ever

I always use my servercommandgui with the function editor for convienence, and it has never had this problem.

I would suggest putting all the misc client side scripts you want to execute in a separate folder, then make a separate client mod to execute them.

or just get my mod because it does exactly that lol /shamelessselfadvertising

also it is possible you may have namespace issues, because I name all functions nameofmod_nameoffunction and I don't get this problem ever
i bound a "executor.cs" to ctrl+u, and can instantly load scripts BAM
Right, here's the problem, recently I, Danny Boy and Jes00 have had problems with our scripts not executing. We have to either Execute them manually or make another client.cs which Executes that script for us.

Just to take note, we do include exec("filepath"); in the script that has problems automaticly executing.


description.txt?
console errors?

i bound a "executor.cs" to ctrl+u, and can instantly load scripts BAMdescription.txt?
console errors?
Nope, I get neither any console errors/syntax errors.

Also I do have a description.txt

/noticed the topic moved hurr

Nope, I get neither any console errors/syntax errors.

Also I do have a description.txt

/noticed the topic moved hurr

Please attach a console log and the description.txt of your add-on to a post.

Make sure it's:
- not client.cs.cs
-has a description.txt
-doesn't happen to share a name with a crap-on
-doesn't have syntax errors
-isn't nested (ex: client_script/client_script/client.cs)
-has at least one underscore in it's zip/folder name
-and um, not sure what else.

Make sure it's:
- not client.cs.cs
-has a description.txt
-doesn't happen to share a name with a crap-on
-doesn't have syntax errors
-isn't nested (ex: client_script/client_script/client.cs)
-has at least one underscore in it's zip/folder name
-and um, not sure what else.
you forgot this:
-if you jizz on the folder your add-on gets super powers.

you forgot this:
-if you jizz on the folder your add-on gets super powers.
he's not asking for super powers though

Make sure it's:
- not client.cs.cs
-has a description.txt
-doesn't happen to share a name with a crap-on
-doesn't have syntax errors
-isn't nested (ex: client_script/client_script/client.cs)
-has at least one underscore in it's zip/folder name
My add on has all this but does not execute.

Send me the entire add-on.