Updater for your game - a problem
Hi!
I know how to download an ini and compare versions. The remaining problem is that my updater freezes if the computer is not connected to the internet or a firewall blocks access or the server cannot be reached.
How can I prevent my updater from freezing?
Are there MMF2 updaters out there (open source)?
Re: Updater for your game - a problem
The YASO object can tell you if a connection to the internet exists.
Also, I don't see how your application could possible freeze. This sound like a bug that needs to be fixed. What extension(s) do you use to get the information from the web?
Re: Updater for your game - a problem
YASO and Download object. The problem is that "is connected to the internet" does not work. I use the Zonealarm firewall and lock internet access...the YASO object does not recognize the event "is connected to the internet" nor "is not connected to..." ... maybe it would work if I disconnected the modem cable but it should also work by disallowing any internet access by the firewall, shouldn't it?
Re: Updater for your game - a problem
Try using the Get object to retrieve the INI, and loading it into INI++. That way, you don't even need to write to the hard disk.
Re: Updater for your game - a problem
Jamie Where can I download the Get object? Is it free or do I have to buy it?
Re: Updater for your game - a problem
It is in the released extension sub-forum.
Marv
Re: Updater for your game - a problem
Leander, Zone Alarm will lock up any internet applications that ask for internet access while the same is blocked - until you answer the dialog.
Problem is, if the application is full screen, the dialog will show up behind everything - and so you won't be able to respond the dialog or quit the program, and be forced to restart.
Remove Zone Alarm, it is a bad product.
Re: Updater for your game - a problem
Quote:
Originally Posted by Fimbul
Leander, Zone Alarm will lock up any internet applications that ask for internet access while the same is blocked - until you answer the dialog.
Problem is, if the application is full screen, the dialog will show up behind everything - and so you won't be able to respond the dialog or quit the program, and be forced to restart.
Remove Zone Alarm, it is a bad product.
Why can't you press the windows button and switch the window, minimizing the full screen application?
Re: Updater for your game - a problem
Zone alarm locks everything up, and even intercepts system calls.
Nothing gets done until you click the dialog.
Re: Updater for your game - a problem
You can also try out Dispatcher, which works well in MMF2 for an updater. I believe it was Code6 that made it.
Re: Updater for your game - a problem
Thanks for your replies.
Which software should I use instead of ZoneAlarm?
Re: Updater for your game - a problem
Personally, I use COMODO, but it's not very good.
Truth is, software firewalls don't offer a lot of protection, and you should mostly leave them disabled.
If you need a firewall, get a hardware one.
Re: Updater for your game - a problem
I am behind a router anyway...but don't know how secure it is.
Ok, my updater is almost finished. The remaining problem is how MMF2 knows if the download was successful. It knows if the download has been interrupted but not if the correct file was downloaded.
I use the Download object...it downloads a file but if this file does not exist on my server, still something is downloaded...a file with an error 404 (not found) in it.
I need something that tests if a file really exists online and if my webspace can be reached. "Download file..." either downloads the file or downloads a generated error 404.
Any ideas?
Re: Updater for your game - a problem
Use the Get object to ask a script online if it exists or not. If you don't receive a YES or NO from the script it means that the script wasn't even accessible in the first place.