The Daily Click ::. Forums ::. Klik Coding Help ::. Ziip file problem for uploaded game
 

Post Reply  Post Oekaki 
 

Posted By Message

Dave S.



Registered
  26/09/2003
Points
  923
26th November, 2014 at 26/11/2014 11:03:21 -

At first the screenshots weren't working (fixed that now). The download is okay except that nearly all of the MAIN SCREEN images are missing. The 39 challenges are still playable. This is what I get after extraction...

Image

... and this is what it should look like...

Image

The build (exe file) is fine before archiving/extracting. I have tried it with both PeaZip and 7Zip. Help would be appreciated.

 
n/a

Dave S.



Registered
  26/09/2003
Points
  923
27th November, 2014 at 27/11/2014 09:07:51 -

UPDATE - It's getting stranger. The executable file works perfectly. If I upload it to a storage cloud (Mediafire in my case) then copy the download link to the clipboard, paste into the search bar in Google Chrome, the resulting download file is still corrupt. So it doesn't appear to be compression related.

 
n/a

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
27th November, 2014 at 27/11/2014 13:37:16 -

What do you use for the graphics of the different levels? Are they active objects? Are they active pictures? Are they external graphics, not included in the archive files?

See if you can use a different type of entity to save the menu selections and it may solve your problem.

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
27th November, 2014 at 27/11/2014 16:23:00 -

I assume you used the picture object for the main screen images and browsed to the location of the pictures. If so this is the cause of your problem.

Example

Picture 1
file location : C:\Users\Username\Documents\Gamename\Pictures\picture1.jpg
Picture 2
file location : C:\Users\Username\Documents\Gamename\Pictures\picture2.jpg
Picture 3
file location : C:\Users\Username\Documents\Gamename\Pictures\picture3.jpg

Works great on your machine, zip it up and pass it to your friend who unzips it to his computer. He unzips it to his downloads folder.
Problem is that the path referenced above does not exist.

Example 2

Picture 1
file location : apppath$+"\Pictures\picture1.jpg"
Picture 2
file location : apppath$+"\Pictures\picture2.jpg"
Picture 3
file location : apppath$+"\Pictures\picture3.jpg"

Works great on your machine and as you have zipped the images with the executable works fin on your friends machine too.

Lesson here is if you are working with external files that are essential to your game/application, always include them in the zip file. The Apppath$ entry tells the exe that the files are located in a folder inside the location of the exe.

 
n/a

Dave S.



Registered
  26/09/2003
Points
  923
27th November, 2014 at 27/11/2014 17:46:20 -

s-m-r/lembi2011 - many thanks for your input. Yes, that seems to make sense. I will look into it when I get a chance and will report back.

 
n/a

Dave S.



Registered
  26/09/2003
Points
  923
27th November, 2014 at 27/11/2014 18:23:47 -

Where should I include the information for the file locations of the active objects. The game also uses a simple array which, at the moment is saved in F:/Projects/Array.arr which won't be any good for other users.

Thanks.

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
28th November, 2014 at 28/11/2014 10:56:13 -

use the same system, apppath$ can be used for everything that uses external file paths

 
n/a

Dave S.



Registered
  26/09/2003
Points
  923
28th November, 2014 at 28/11/2014 21:44:09 -

In the end I just made a new backdrop for the intro screen showing all of the active pictures and put it behind everything else.

Thanks.

 
n/a

The_Antisony

At least I'm not Circy

Registered
  01/07/2002
Points
  1331

VIP MemberStarSnow
29th November, 2014 at 29/11/2014 21:05:31 -


Originally Posted by Dave S.
In the end I just made a new backdrop for the intro screen showing all of the active pictures and put it behind everything else.

Thanks.



That's the way to Mickey Mouse things! Next time, try duct tape.

 
ChrisD> Employer: Say, wanna see a magic trick?
ChrisD> Employee: Uhh… sure, boss.
ChrisD> Employer: Your job! It just disappeared! Pack your things and leave! Pretty good trick, huh?

Dave S.



Registered
  26/09/2003
Points
  923
29th November, 2014 at 29/11/2014 21:28:24 -

I did not know how the correct way to go about it so I had to improvise - I do this all the time in real life. How long before it appears in the downloads section?

 
n/a

The_Antisony

At least I'm not Circy

Registered
  01/07/2002
Points
  1331

VIP MemberStarSnow
29th November, 2014 at 29/11/2014 22:51:08 -

Lembi described the best way to go about it. Just have to move your images to a folder within the app directory then replace your static filepaths with AppPath$+"subfolder\image.png". It's whatever, though. Either way, the visual outcome is the same.

The way tDC has been updating lately, it could be a few days before your upload is approved. Sorry, man.

Edited by The_Antisony

 
ChrisD> Employer: Say, wanna see a magic trick?
ChrisD> Employee: Uhh… sure, boss.
ChrisD> Employer: Your job! It just disappeared! Pack your things and leave! Pretty good trick, huh?

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
30th November, 2014 at 30/11/2014 00:34:08 -


Originally Posted by Dave S.
I did not know how the correct way to go about it so I had to improvise - I do this all the time in real life. How long before it appears in the downloads section?


Yeah, it usually takes a while for the admins to find the time to review downloads. I happened upon your project by manually changing the URL of the most recently-approved download and going to the next file address.

 
n/a

Dave S.



Registered
  26/09/2003
Points
  923
30th November, 2014 at 30/11/2014 08:50:23 -

The_Antisony (I thought you were Circy), I read what lembi had suggested but when you say then replace your static filepaths with AppPath$+"subfolder\image.png" how exactly do I achieve this? Would I have to reassign all 39 of them?

I had just assumed that active objects, active pictures and background objects were all part of the code.

s-m-r, yes, I wondered how you got hold of the game.

 
n/a

The_Antisony

At least I'm not Circy

Registered
  01/07/2002
Points
  1331

VIP MemberStarSnow
1st December, 2014 at 01/12/2014 03:55:51 -

The Active Picture Object can load external images at runtime via expressions. In the event editor in any type of triggered argument you can create a new condition in the APO by right-clicking and selecting "New Picture". In the file window that opens, click the "Expression" button. The new window that pops up is the expression editor and where you'd want to type "AppPath$+"filepath/relative/to/project/directory.png".

In terms of time saved, I think you went the best route. You're right about background and active objects - you can't load images into either at runtime. You would have had to edit 30-something APO's to achieve what a screenshot fixed.

I AM CIRCY!*

*no, I am not.

Edited by The_Antisony

 
ChrisD> Employer: Say, wanna see a magic trick?
ChrisD> Employee: Uhh… sure, boss.
ChrisD> Employer: Your job! It just disappeared! Pack your things and leave! Pretty good trick, huh?

Dave S.



Registered
  26/09/2003
Points
  923
1st December, 2014 at 01/12/2014 15:44:41 -

That is useful to know, thanks for your help.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click