runtime error: cannot append to list proc name: LoadFile (/mob/proc/LoadFile) source file: Saving and Loading.dm,13 usr: Dev (/mob) src: Dev (/mob) call stack: Dev (/mob): LoadFile() Dev (/mob): StartScreen(Dev (/mob)) Dev (/mob): enter()
Its telling me to go straight to line 13 in the Saving and Loading.dm. Fair enough but I goto the line and it's a line that cannot be modified except through datum which I have tried over hundreds of time but I keep getting errors.
Read(F)
Now I do some stress testing to repeat the problem and it only occurs after the EndDuel() proc is called. I play around with the list and find the problem thats causing it which is shown below.
mob/proc/EndDuel(var/mob/A)
A.main_deck = new()
A.extra_deck = new()
A.side_deck = new()
A.hand = new()
A.graveyard = new()
A.banished = new()
for(var/mob/B in A.oppenents)
B.oppenents -= A
if(B.oppenents.len == 0)
FindOppenent(B)
sleep()
...
There is more to the code but it is not the cause of the problem. I do not know what I am doing wrong but someone who might know this stuff way more than me might. :)