Jump to content


Photo

R.e.a.l. External Resource Extraction (ver 5.1b)


  • Please log in to reply
99 replies to this topic

#21 dgm

dgm

    GMC Member

  • GMC Member
  • 78 posts

Posted 24 April 2007 - 04:33 PM

I'm creating an editor which will allow end users to create and share additional content for the game, and I can't expect each of them to master Winzip and use it manually every time. That would drive off customers. I have to build archive manipulation into the game so the program can do it for them at the click of a button.
  • 0

#22 Rpeter

Rpeter

    GMC Member

  • New Member
  • 72 posts

Posted 24 April 2007 - 06:18 PM

I have a problem!
The first time when i used this source it worked fine!
But now it always freezes the whole computer and the game uses 160mb memory!!!!
What is this?
EDIT:
Now i know what is it!
I resized my backgrounds to 1x1 and then the problem came out!
But why?
EDIT:
This source uses tons of memory and cpu too.
My game uses 160MB(!!!!) memory and 50%cpu!!!!!!
I think this engine is not so good...

Edited by Rpeter, 24 April 2007 - 06:39 PM.

  • 0

#23 Potnop

Potnop

    GMC Member

  • GMC Member
  • 3101 posts

Posted 24 April 2007 - 10:37 PM

It must be the way you are doing something. The engine itself isn't what must be causing the problem. It's the 7za.exe program that is doing stuff. You must have programmed it to do soemthing wrong and take up a lot of resources. I never ran into any of these problems. My game uses 23 % CPU and 17 MB of RAM.

Then again if you have a large amount of stuff loading don't be too surprised. While the 7za.exe program is extracting it's using up a lot of resources. And if you read the manual for 7zip under the part for creating archive setting it talks about how various settings like Dictionary size and stuff increase the memory usage required by 7zip when extracting.

As for your archive making program for now I'd stick to tar. Zip files are too easy to open. You want the archive to be secure right? Tar is less common than zip so it's harder to gain access. Personally I stick to 7zip since it has password protection. I really have no idea why your thing doesn't work. Maybe send me the source and I'll see if maybe you're doing soemthing wrong. I ran into that problem many times. REAL isn't very good at telling what's wrong.

potnop@gmail.com is my email...

Edited by Potnop, 24 April 2007 - 10:40 PM.

  • 0

#24 dgm

dgm

    GMC Member

  • GMC Member
  • 78 posts

Posted 25 April 2007 - 02:23 AM

My source is basically your 5.1a version, which I'm testing in a new, otherwise-blank program. Other than the 5.1a stuff the only non-trivial code being used is the line I've already shown you. The only thing I'm changing between attempts is the dot extension in the first arguement (to change formats). So if the .tar extension works then .zip or .7z should as well, since nothing else is being altered.

As for .zip being too common, I already said that commonality is the main reason I want to use that format. I'll accept that password protection may be good to have, so maybe .7z would be a better choice if you can get it working, but pointing out that .tar is less-known is only going to steer me away from that format.

Edited by dgm, 25 April 2007 - 02:24 AM.

  • 0

#25 death-droid

death-droid

    GMC Member

  • GMC Member
  • 2599 posts

Posted 25 April 2007 - 06:48 AM

can you please host Real Loading 4 using rocket soft
  • 0

#26 Potnop

Potnop

    GMC Member

  • GMC Member
  • 3101 posts

Posted 27 April 2007 - 04:41 AM

Try seeing if it works with the version 4 that I didn't update. I actually didn't even touch the archive creation scripts so IDK if it's because of my update or not, but try it.

And the version 4 that I uploaded on Rocketsoft works fine. THe other version I can't post on rocketsoft because for soem reason it no longer allows uploads that are over a certain filesize. I'm not sure what the max is, but it's a pretty low one, which sucks. I can only upload things around 500 kb on it. Do you need a mirror for the other file?
  • 0

#27 death-droid

death-droid

    GMC Member

  • GMC Member
  • 2599 posts

Posted 27 April 2007 - 12:14 PM

yes please becuase it downloads to slow from the current host of it
  • 0

#28 smaksak

smaksak

    It's a matter of taste

  • New Member
  • 208 posts

Posted 28 May 2007 - 09:00 PM

Sorry for bumping this one, but the download link for the sample file seems to be broken. Can you please host it elsewhere? I really need it.
Thanks.
  • 0

#29 xDanielx

xDanielx

    GMC Member

  • GMC Member
  • 1001 posts
  • Version:Unknown

Posted 28 May 2007 - 09:30 PM

Sorry for bumping this one, but the download link for the sample file seems to be broken. Can you please host it elsewhere? I really need it.
Thanks.

<{POST_SNAPBACK}>

Ditto.
  • 0

#30 Potnop

Potnop

    GMC Member

  • GMC Member
  • 3101 posts

Posted 29 May 2007 - 01:06 AM

OK, works for me. But yeah, I need a mirror for that. Rocket soft doesn't allow big files anymore for soem reason. So what's a good host now? There are becoming less and less good ones.
  • 0

#31 xDanielx

xDanielx

    GMC Member

  • GMC Member
  • 1001 posts
  • Version:Unknown

Posted 29 May 2007 - 02:01 AM

The Real Loading 4 file with the example redirects me to the home page of the uploader, though I haven't had any trouble with the other links. I've been using SendMeFile - it's not really a good host, but if you can't find anything else it's at least easy to upload files.

Thanks,
Daniel

Edited by _Daniel_, 29 May 2007 - 02:01 AM.

  • 0

#32 dender

dender

    GMC Member

  • New Member
  • 308 posts

Posted 09 June 2007 - 07:38 AM

[...]
OKei just forget about it :S

Edited by dender, 09 June 2007 - 07:41 AM.

  • 0

#33 Potnop

Potnop

    GMC Member

  • GMC Member
  • 3101 posts

Posted 10 June 2007 - 04:52 AM

Aww man, sorry for forgetting to reupload under a different mirror. i hope this one works for you guys.

Here's another link.

Real Loading 4 Mirror

I took the suggestion of using sendmefile. I'll register with an actual site sometime soon maybe.

Edited by Potnop, 10 June 2007 - 04:52 AM.

  • 0

#34 Deri

Deri

    GMC Member

  • New Member
  • 70 posts

Posted 12 June 2007 - 06:40 PM

the REAL loading 4 works fine for me, but when I try to run REAL_LOADING5_1a at the game maker loading screen (not the custom one you made) I get the error "Error: Error in resource data." What's up with that?
  • 0

#35 dender

dender

    GMC Member

  • New Member
  • 308 posts

Posted 13 June 2007 - 07:41 PM

To previous, I think that REAL isn't meant for replacing GM loading bar, as It does all the things in-game.

Anyway I have come to a point where I want to load from different archives in one loading session. Right now I haven't accomplished it with REAL. Can REAL even do it or what I have to do, to accomplish it?

//--------------------

Right now I thought that as long as the new update create's a list of which resources need to be extracted, it should't be any problem compiling all the data in one archive and load it in one session.

But still, multiple archive loading in one loading session might come in handy. Especially when you have archives in many different locations.

dender.

Edited by dender, 13 June 2007 - 07:52 PM.

  • 0

#36 xDanielx

xDanielx

    GMC Member

  • GMC Member
  • 1001 posts
  • Version:Unknown

Posted 13 June 2007 - 11:35 PM

Aww man, sorry for forgetting to reupload under a different mirror.  i hope this one works for you guys.

Here's another link.

Real Loading 4 Mirror

I took the suggestion of using sendmefile.  I'll register with an actual site sometime soon maybe.

<{POST_SNAPBACK}>

Thanks, the mirror works fine now. :)
  • 0

#37 Marchal_Mig12

Marchal_Mig12

    The Rhouan

  • GMC Member
  • 1153 posts

Posted 15 June 2007 - 01:30 AM

Guys, you should know that this DLL isn't really loading stuff. But the only thing it do is that it extract 7z files with given password to a directory then load the file and delete them. That's it.

After that how could your game uses 160 mb of memory. Do you mean while the main game is running or while it is externally loading. Because after you loaded the files the dll is gonna be released so...

See ya,
Miguel
  • 0

#38 Potnop

Potnop

    GMC Member

  • GMC Member
  • 3101 posts

Posted 15 June 2007 - 05:40 PM

@Marchal_Mig12

The dll simply allows the 7zip thing to work in the background. The scripts are what load everything.

This extracts the files, then has your game load all the resources that you have extracted, then it deletes them from the harddrive because you no longer need them.

It's the scripts that do most of the work, not the dll that comes with it.


@dender

And the loading bar is to show progress of loading the files. Normally when your game is waiting for 7zip to complete it would freeze until everything is loaded. But with the loading bar you have a nice estimation of how long to wait for it to load. With R.E.A.L. you can also have a mini game running in the background.

And I really don't know if I can make it load multiple archives in one session. That's why I made a modification so it extracts only the needed files from one archive instead of the whole archive. I was originally going to have multiple archives too.


@Deri
The 5.1a is the custom one I made. Do you mean when the game is loading and it shows that game maker loading bar it has an error? Maybe your download got a bit corrupted. Try redownloading.

Or is it an error when loading the resources from a 7zip file? It could be that you have "create a solid archive" set to on when you use 7zip to create the archive. This makes it so the whole archive has to be extracted even though it takes up a bit less space. I guess I should also mention that on page one.
  • 0

#39 Marchal_Mig12

Marchal_Mig12

    The Rhouan

  • GMC Member
  • 1153 posts

Posted 17 June 2007 - 01:59 AM

Yeah, Yeah I knew that. In reality this DLL should be used for security.

See ya,
Miguel
  • 0

#40 Deri

Deri

    GMC Member

  • New Member
  • 70 posts

Posted 17 June 2007 - 02:28 AM

@Marchal_Mig12

@Deri
The 5.1a is the custom one I made.  Do you mean when the game is loading and it shows that game maker loading bar it has an error?  Maybe your download got a bit corrupted.  Try re downloading.

<{POST_SNAPBACK}>


Yes, the GM loading bar shows an error. Ill download now.

edit: I re downloaded, but I'm still getting the same error.
Posted Image
oh well, version 4 still works.

Edited by Deri, 17 June 2007 - 02:37 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users