Author Topic: Syntax errors while attempting to code a sharp shadows mod  (Read 1099 times)

Me, and my friend TeeOS, are trying to get Jasa's code he posted to work, and we keep getting syntax errors at line 3 of the code.
Here is the code, if someone can fix this i'll be greatly appreciated!
Code: [Select]
package sharp
{
 $Shader::ShadowSize = "8192";
 initializeShaderAssets();
 regenerateShadowMapFBOs();
 flushVBOCache();
};
activatePackage(sharp);

You don't put it in a package

You don't put it in a package
can you fix up the code then? i seriously dont want to have to execute the damn thing every time i start the game

Code: [Select]
$Shader::ShadowSize = "8192";save it as client.cs and put it in a folder named client_sharpshaders
make sure to have a description.txt in the folder also

Code: [Select]
$Shader::ShadowSize = "8192";save it as client.cs and put it in a folder named client_sharpshaders
make sure to have a description.txt in the folder also
do i need to execute it every time i start the game?

if a file in an add-on is named client.cs it is auto-executed when the game starts.