Gamestudio Links
Zorro Links
Newest Posts
zorro license, IB connection
by miwok. 12/06/23 16:32
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (miwok, AndrewAMD, TipmyPip, 3run, Quad, 1 invisible), 645 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Unzip or Unrar - how? #419336
03/09/13 02:50
03/09/13 02:50
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
Anyone know any way for me extract files and folders from a zip or rar?

I created a AutoUpdate system for my game but after he download of the FTP file, i do not know how I could extract the file from the zip or rar.
If anyone knows of a way to do this I would be very grateful!



Last edited by NeoNeper; 03/09/13 02:53.

Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: Unzip or Unrar - how? [Re: NeoNeper] #419337
03/09/13 03:27
03/09/13 03:27
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
I'd suggest including the 7zip executable into your project and calling it with exec.

http://www.conitec.net/beta/ain-exec.htm

http://www.7-zip.org/download.html


Always learn from history, to be sure you make the same mistakes again...
Re: Unzip or Unrar - how? [Re: Uhrwerk] #419409
03/09/13 20:35
03/09/13 20:35
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
I know that NeoNeper is going to ignore this post, but I have some hopes that other users will find this when they search for a similar problem: Updating is not easy!

The basic rule is that you shall never ever trust any third party input, in this case the update package becomes the third party input. Do yourself a favour and validate what you get over the wire. You might think "nah, fuck off JustSid, I only load data from a URL that I know belongs to me", but if you do that, you just make yourself vulnerable to DNS poisoning or man in the middle attacks. Please use HTTPS for the transfer and validate the certificate! You know what the certificate is supposed to look like, make sure that you get that exact certificate and don't accept anything else! If you can't use HTTPS, for whatever reason, at the very least sign the downloaded data and verify the signature. Do this using a known crypto algorithm and use a tested crypto library, under no circumstances do you ever roll your own crypto! (Now you are going to say "but JustSid, RSA is really simple, I surely can implement it myself". Yes, but don't fucking use it in production code until you understand how cache-based timing and other side channel attacks work and how to counter them).

Crypto is not easy! Just because the underlying mathematical function appears to be easy and you understand the Wikipedia page about it, doesn't mean that you are a crypto expert and can implement these things yourself. Whenever you do something with crypto, get a well known, well tested open source library which has been extensively peer reviewed.

Remember; You are downloading executable data on behalf of the user, don't fuck that up! Believe me, you don't your game to become an attack vector into a users system, so make sure that you get it right. If you have doubts that you can do that in a secure manner, don't even bother integrating an updater (and don't pay someone else if you can't peer review their code).


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Unzip or Unrar - how? [Re: WretchedSid] #419433
03/10/13 02:19
03/10/13 02:19
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
JustSid:His argument is very valid, I completely understand what you mean!
My time is very limited and I am working on my project without help from other friends!. At the moment I'm focusing the game development and the auto update is only one way to facilitate testing for friends who have a TEST version need not get the new version on the SITE, every time I update the project.
Lack much so that it is a version COMMERCIAL. And of course that if i getting the necessary Subsidies, these implementations will be made.

I will not stop producing my project just because something is very difficult. Agree?

Uhrwerk:
His hint was pretty cool!
This will serve to Moment!

TANKS.


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: Unzip or Unrar - how? [Re: NeoNeper] #419437
03/10/13 10:34
03/10/13 10:34
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Originally Posted By: NeoNeper
Lack much so that it is a version COMMERCIAL.

I don't know what problem you have with the commercial version. I never used any pro features until now, all of the stuff is possible with commercial or some custom made libraries


Visit my site: www.masterq32.de
Re: Unzip or Unrar - how? [Re: MasterQ32] #419456
03/10/13 14:39
03/10/13 14:39
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
I have no problem!


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: Unzip or Unrar - how? [Re: NeoNeper] #419575
03/12/13 00:18
03/12/13 00:18
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
you can always use zip files and unzip with zlib.


3333333333
Re: Unzip or Unrar - how? [Re: Quad] #419643
03/12/13 22:31
03/12/13 22:31
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
7zsd.sfx was the best solution!. I managed to do my silent SelfExtract perfect.
http://7zsfx.info/en/


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1