Author Topic: Another Mining Problem  (Read 869 times)

I made this mining edit.
It was working until I got to the 16th ore.
I added 3 today and now when I type /startdig nothing happens.

I'm afraid I may have accidentally messed up a bit of the script.
Do you know whats wrong with it?

I just realized he only edited a few things and totally shat up the format, I can't believe him.

I just realized he only edited a few things and totally shat up the format, I can't believe him.
I used RedGuy's.
Not yours.



Simple fix. Rename the file's .txt to .cs

Oh... well thank you.
I hadn't known i made that mistake.

Edit:
That was just my backup.
The file in the Mining folder is a .cs file.

I dont see anything obvious.

Can you post a console.log of what happens you type /startdig?

I dont see anything obvious.

Can you post a console.log of what happens you type /startdig?
Ok, Ill do that.

Here it is:

The mod isnt getting loaded because you have syntax errors in your script:
Code: [Select]
Loading Add-On: GameMode_UnlimitedMining (CRC:2005384897)
Add-Ons/GameMode_UnlimitedMining/Mining.cs Line: 52 - Syntax error.
>>> Some error context, with ## on sides of error halt:
$Dig_Data_Value[7]  = 10000;
$Dig_Data_Value[8]  = 6000;
$Dig_Data_Value[9]  = 5000;
$Dig_Data_Value[10]  = 50000;
$Dig_Data_Value[11]  = 3000;
$Dig_Data_Value[12]  = 2500;
$Dig_Data_Value[13]  = 4500;
$Dig_Data_Value[14]  = 6000;
$Dig_Data_Value[15]  = 2000:
#
#$Dig_Data_Value[16]  = 9000;
$Dig_Data_Value[17]  = 9500;
$Dig_Data_Value[18]  = 1000;


// low%  high% min depth (0=all)
$Dig_Data_Percent[0] ="0 100 0";
$Dig_Data_Percent[1] ="89.5 90 -10";
$Dig_Data_Percent[2] ="97.5 99 0";
$Dig_Data_Percent[3] ="87.5 89.5 -15";
>>> Error report complete.

$Dig_Data_Value 15 doesnt have a semicolon (;) at the end of the line

Ugh... dumb mistake.
I checked for those and found a few but didn't catch that one.
Thanks.