PoP1-Total Pack: New version development

A user-friendly interface for downloading, tweaking and playing mods.

Moderator: English Moderator Team

David
The Prince of Persia
The Prince of Persia
Posts: 1399
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: PoP1-Total Pack: New version development

Postby David » August 13th, 2017, 11:44 am

Now I tried Total Pack on Windows 10 and indeed I got the "Invalid Enum Value" error.
But I also figured out how to fix it.

Replace the contents of ini\mirror_sites.ini with the following:

Code: Select all

[general]
num_of_mirror_sites=1
current_mirror_site=0

[mirror_site_1]
name=www.popot.org
xml_url=https://www.popot.org/xml/
software_url=https://www.popot.org/custom_levels/software/
screenshots_url=https://www.popot.org/custom_levels/screenshots/

Note the HTTPS in the URLs. This means that Total Pack won't see any redirects.


Also, I found this about the error:
https://groups.google.com/d/msg/borland.public.delphi.internet.winsock/p-yurWkVOWc/uUUNcUrkqaoJ
https://stackoverflow.com/questions/39127652/how-to-find-url-redirects-to-another-url-while-downloading-an-application-using#comment66304551_39127652
It seems that redirection might cause an "Invalid Enum Value" error.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3018
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: PoP1-Total Pack: New version development

Postby Norbert » August 13th, 2017, 2:03 pm

David wrote:But I also figured out how to fix it.


Nice. I've also mentioned the fix here.

malvivio
Efendi
Efendi
Posts: 14
Joined: March 1st, 2017, 10:41 am

Re: PoP1-Total Pack: New version development

Postby malvivio » August 13th, 2017, 9:17 pm

David wrote:
malvivio wrote:So it adds new mods in the list but doesn't allow to install them, cause it still says: Invalid Enum Value

Now, that is some progress.

Malvivio, you can manually install mods this way:
* In Total Pack, select the mod you want to install.
* Click the "Go to popot.org page" button. This should open a new window.
* Download the ZIP file of the mod into the mods\levelset\software\ folder within the Total Pack folder.
* Close Total Pack and open it again.

I know it's annoying, but as Norbert wrote, we can't do anything until Starwindz comes back.

Also, Malvivio, which operating system are you using?



David, I just did as you suggest and it seems to fonction: now I can play mod 179 even if the screenshots of game still don't appear in Total Pack.

My operating system is Windows 10.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3018
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: PoP1-Total Pack: New version development

Postby Norbert » August 14th, 2017, 12:18 am

malvivio wrote:[...] now I can play mod 179 even if the screenshots of game still don't appear in Total Pack.


Note that David has since posted a more permanent workaround to fix the problem.
Change the three popot.org lines in the file ini\mirror_sites.ini that have "http" to "https".

David
The Prince of Persia
The Prince of Persia
Posts: 1399
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: PoP1-Total Pack: New version development

Postby David » August 14th, 2017, 9:27 am

Norbert wrote:Note that David has since posted a more permanent workaround to fix the problem.

That post got into a new page, maybe that's why he didn't see it.
That sometimes happens to me as well. :)

malvivio
Efendi
Efendi
Posts: 14
Joined: March 1st, 2017, 10:41 am

Re: PoP1-Total Pack: New version development

Postby malvivio » August 14th, 2017, 10:27 pm

David wrote:Now I tried Total Pack on Windows 10 and indeed I got the "Invalid Enum Value" error.
But I also figured out how to fix it.

Replace the contents of ini\mirror_sites.ini with the following:

Code: Select all

[general]
num_of_mirror_sites=1
current_mirror_site=0

[mirror_site_1]
name=www.popot.org
xml_url=https://www.popot.org/xml/
software_url=https://www.popot.org/custom_levels/software/
screenshots_url=https://www.popot.org/custom_levels/screenshots/

Note the HTTPS in the URLs. This means that Total Pack won't see any redirects.


Also, I found this about the error:
https://groups.google.com/d/msg/borland.public.delphi.internet.winsock/p-yurWkVOWc/uUUNcUrkqaoJ
https://stackoverflow.com/questions/39127652/how-to-find-url-redirects-to-another-url-while-downloading-an-application-using#comment66304551_39127652
It seems that redirection might cause an "Invalid Enum Value" error.



OMG NOW IT WORKS!!!

There were those three missing S in the http!!!

But, in ini\mirror_sites.ini there is also a [mirror_site_2]
Why isn't necessary adding the missing S also in its http??

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3018
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: PoP1-Total Pack: New version development

Postby Norbert » August 15th, 2017, 7:25 am

malvivio wrote:But, in ini\mirror_sites.ini there is also a [mirror_site_2]
Why isn't necessary adding the missing S also in its http??


Total Pack downloads files from a mirror you select.
The default mirror is "www.popot.org", which is a website that now defaults (redirects) to httpS.
(If you type just "popot.org" in the address bar, you will see you go to https://www.popot.org/.)
The other mirror is "pop1tp.wink.ws", which does not display this behavior - if it works at all.

David
The Prince of Persia
The Prince of Persia
Posts: 1399
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: PoP1-Total Pack: New version development

Postby David » August 15th, 2017, 10:42 am

malvivio wrote:But, in ini\mirror_sites.ini there is also a [mirror_site_2]
Why isn't necessary adding the missing S also in its http??

Because that site is not used. See below.

Norbert wrote:The other mirror is "pop1tp.wink.ws", which does not display this behavior - if it works at all.

http://pop1tp.wink.ws does not work, it gives me a timeout error. (Whose site was that, BTW?)
It's already disabled in the INI, with the setting "num_of_mirror_sites=1".

You could enable it with "num_of_mirror_sites=2", but as that site is dead, there is no point in doing that.

Also, I found a bug: selecting a different site does not take effect until I close the Total Pack.
I mean, when you click the "Start Total Pack" button (in the startup window), then it will still use whichever mirror was originally selected at startup.
The new setting is saved to the INI only after the main window appears.

malvivio
Efendi
Efendi
Posts: 14
Joined: March 1st, 2017, 10:41 am

Re: PoP1-Total Pack: New version development

Postby malvivio » August 16th, 2017, 11:21 am

So David, you solved all the problems without waiting Starwindz! :D All we users thank you a lot!! :mrgreen: :mrgreen:

At the end I added the three missing S also in mirror 2 and I found no differences from not doing it, anyway Total Pack works well. ;)


Return to “Total Pack”

Who is online

Users browsing this forum: No registered users and 1 guest