| SexScripts : Fix for "Error Depreciated" error in older script? - https://ss.deviatenow.com:443/viewtopic.php?f=6&t=644 | Page 1 of 1 |
Fix for "Error Depreciated" error in older script? |
Banjo [ Sat Sep 24, 2016 4:03 pm ] |
|---|---|
I am updating my old scripts and just noticed a new error in my tweaked version of Doti's Blackjack script. I get an "Error Depreciated" error (and SS stops running) generated by the line: Code: def thisImage = javax.imageio.ImageIO.read(new File("images/cards/deck"+deck+"/"+cards[i][j]+".png")) I assume this is due to a code change in newer SS versions? Doti, what do I need to change this line to, to fix the error? |
|
Re: Fix for "Error Depreciated" error in older script? |
doti [ Sun Sep 25, 2016 10:25 am ] |
|---|---|
I think this topic is related I corrected and published The White Queen |
|
Re: Fix for "Error Depreciated" error in older script? |
Banjo [ Sun Sep 25, 2016 11:05 am ] |
|---|---|
Thanks for the help, and for fixing The White Queen too! Quick question: is there a way to fix the error (when checking): Code: Error in simulation (maybe not a real error) javax.imageio.IIOException: Can't read input file!(@ line 428) (in the updated SpankBlackjack script that I just uploaded), or is it a "not error" that can be ignored (possibly caused by the wildcard filenames used in that line in my version compared to your White Queen version, which doesn't generate the error). |
|
Re: Fix for "Error Depreciated" error in older script? |
doti [ Sun Sep 25, 2016 11:34 am ] |
|---|---|
You probably guessed it, during the simulation the tool may generate some random names, sus failing to open some related files. |
|
| Page 1 of 1 | All times are UTC + 1 hour [ DST ] |