Koregan Posted May 26, 2015 Share Posted May 26, 2015 Hi to all. I just realized that my mod is not working correct on build 32 and I had a look on the error-messages. It seems like the "File.separator" was removed - but I managed this by just setting it with my mod again. But I have another problem:URL.new() is not working any more, so I cannot call online-information as i did all the time.Is there a way to get it back, or did just the command change? Would be nice to know, because half of my mod (and also the autoupdater) is based on this function. Thanks for any help.Koregan Link to comment Share on other sites More sharing options...
blindcoder Posted May 27, 2015 Share Posted May 27, 2015 Check this tracker entry http://theindiestone.com/forums/index.php/tracker/issue-1682- Koregan 1 Link to comment Share on other sites More sharing options...
Koregan Posted May 27, 2015 Author Share Posted May 27, 2015 Thanks - solved with the new function "getUrlInputStream()". blindcoder 1 Link to comment Share on other sites More sharing options...
Koregan Posted May 28, 2015 Author Share Posted May 28, 2015 It seems like the "File.separator" was removed - but I managed this by just setting it with my mod again. I solved it myself, but is there any direct alternative to "File.separator" ?I think this is an important part for any modder (when you want to set paths for your textfiles of the mod). Perhaps I just missed to know the alternative way. (I also tried "file.separator", but "file" is also not available.) Link to comment Share on other sites More sharing options...
valrix Posted May 29, 2015 Share Posted May 29, 2015 I'm pretty sure you don't need to specify the separator since the exposed methods that accept file paths convert them for you. Link to comment Share on other sites More sharing options...
Brybry Posted May 29, 2015 Share Posted May 29, 2015 And you can just use a forward slash instead of separator in Java. Pretty sure it works with all current operating systems. Link to comment Share on other sites More sharing options...
blindcoder Posted May 29, 2015 Share Posted May 29, 2015 Yes, no matter what separator (\\ or /) you use, the getFileReader and getFileWriter methods change both to File.separator. Link to comment Share on other sites More sharing options...
Koregan Posted May 30, 2015 Author Share Posted May 30, 2015 Okay, thanks.This will definitively shorten my paths.At the moment they are wider than my screen because of all the "File.separator"s... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now