So I am trying to make a PAF version of Pokemon TCG Online. I am having trouble getting DirectoriesMove and RegistryKeys to work at all. When I launch the game, it loads instantly, which should not happen. The data folder alone is 3.7 gb (holds all the images for all cards) and should take a few minutes to copy over on a usb2 connection. Problem is, nothing is being moved. I don't mind waiting a few minutes for my game to load but the problem is it loads instantly and doesn't move over essential files or keys. I should also mention I saved this ini in unicode.
Here is my Launcher.ini
[Launch] ProgramExecutable=Pokemon TCG Online\Pokemon Trading Card Game Online.exe WorkingDirectory=%PAL:AppDir%\Pokemon TCG Online [Activate] Registry=True [DirectoriesMove] PTCGO=%USERPROFILE%\Appdata\LocalLow\The Pok__mon Company International Unity=%USERPROFILE%\Appdata\LocalLow\Unity [RegistryKeys] HKCU=HKCU\Software\The Pokémon Company International -=HKCU\Software\Unity Do you all see anything that could be causing this problem?
At a quick glance, you should be using LOCALAPPDATA, not writing out the location as you are.
Are you saving the file as UTF16LE? UTF8 won't work right.
Sometimes, the impossible can become possible, if you're awesome!
Thanks for the prompt replies. Sorry I have been out all day and just got home.
The directory I need to move the folder to is in the LocalLow folder, and as such, I cannot use% LOCALAPPDATA%.
Additionally, I saved the file in Unicode using notepad.exe. See screenshot. I do not believe Unicode is the problem. All the other options (except for ANSI) tell me it cannot find the ProgramExecutable (because it cannot read the encoding).
Any more suggestions?
Have an awesome day!
Jeff Savage ~ BetaLeaf
What's your folder structure?
(to get an easily copy-paste-able view, I recommend using
TREE /A
, and redirecting it to a file. e.g. "TREE /A X:\PortableApps\AppNamePortable > AppNamePortableTree.txt
")Also, unless you can't, I see no reason not to use "ANSI" encoding.
~3D1T0R
Also, I'm not getting emails upon replies. How can I change this so I can get an email anytime someone replies?
Have an awesome day!
Jeff Savage ~ BetaLeaf
That would be so much easier to read if it were in a <pre> tag.
Anyway, to get to the point, I don't see any reason why it wouldn't be working.
It would be much easier to debug if one of us could see the whole package.
Edit: As for how to get email notifications, you'll want to Subscribe to this thread, which if you're not already you can do by clicking the "Subscribe" link at the bottom of the first post of the thread (if you are subscribed, I believe it will say "Unsubscribe" instead). and go into the "Subscriptions" section of your account settings and make sure the settings under the "Settings" section are as you want them.
~3D1T0R
I edited my post to use "pre" tag. Additionally I found the subscribe button. Thanks.
Here is the package: OneDrive - PTCGO.zip (Now Invalid)
Have an awesome day!
Jeff Savage ~ BetaLeaf
I tried it as it is, and experienced the same issue as you, I then opened App\AppInfo\Launcher\PokemonTCGOnlinePortable.ini with AkelPad Portable, right-clicked on "1200 (UTF-16 LE)" in the status bar, chose "Save As" > "1252 (ANSI - Latin I)" and when I tried it again, it worked as expected.
I did notice that on first run, the folders would be created in the LocalLow directory, and thus might end up having permission issues. (To test, I switched user accounts and tried again and it messed up really badly.) This may not be a problem for people working off of a FAT formatted flash drive, but in case you're not planning to just keep this to yourself (I assume you're putting together a Development Test release to post to the forums here at PortableApps.com), it might affect some people. To prevent this, create an empty directory for each of the [DirectoriesMove] entries in DefaultData, so that they'll already have their permissions set to whatever their parent folder has.
Also, if I were doing this, I would change the [DirectoriesMove]:PTCGO entry to
%USERPROFILE%\AppData\LocalLow\The Pok__mon Company International\Pokemon Trading Card Game Online
, and add the following:And if it were me, I'd set the AppID (and other things normally the same as AppID) to "
PokemonTradingCardGameOnlinePortable
"Aaand... :
PortableApps.com Format validation failed with 18 errors and 4 warnings.
Errors
48x48 (8-bit), 16x16 (8-bit & 32-bit), 32x32 (8-bit & 32-bit), 48x48 (8-bit & 32-bit), and optionally (recommended) 256x256 (32-bit)
Nintendo & PortableApps.com
""Pokémon" and Pokémon character names are trademarks of Nintendo
"false
", as the EULA they make you accept to play it says you won't distribute it or any derivative works.As the EULA is shown by the base app itself, I'm pretty sure you don't need to deal with the EULA at all.
Warnings
Development Test releases should use the Development Test splash screen
Information
Also, this should really use an online installer, as
AFAICT
it's not legal to redistribute it.(If you have difficulty with this, let us know. I or someone else here can help you whip something up.)
And last but not least, please delete the zip archive you uploaded, as (I'll say it one more time), I don't think it's legal to distribute it.
Edit: Also, you might want to take a look at the "PortableApps.com Application Template" available via the "Development" link in the site header.
~3D1T0R
Per you request, I have invalidated the link. This is for my personal use and I had not planned to redistribute. For that reason, I hadn't validated the format. If that ever changes, be sure I will obtain permission first.
Additionally, I'm not sure how to use the Online Feature, however I would love to learn how to. The setup is an msi file.
Edit: I saved the launcher.ini in Windows-1252 using Notepad++ and directories and the Unity registry key now work as intended, however I am still unable to get HKEY_CURRENT_USER\SOFTWARE\The Pokémon Company International to work properly. This must be fixed as this key stores user login information. In the example I gave you, é was replaced with underscores. Neither é or the underscores will get this to work as intended.
Have an awesome day!
Jeff Savage ~ BetaLeaf
Ack!
I just noticed that after doing the encoding conversion I mentioned at the beginning of my last post, the Registry key for [RegistryKeys]:HKCU ends up with using the "é" character, where (according to Windows' Registry Editor) the actual registry has "
é
" (which makes the file basically what it would have been if you'd saved it as 'UTF-8 w/o BOM')Edit: I started writing this before you edited your post, so I didn't see that till now. anyway, it works for me with ANSI encoding and "
HKCU=HKCU\Software\The Pokémon Company International
". Make sure you didn't lose any new line characters in the conversion. (I was playing with it quite a bit, and converting between character encoding, both manually and via AkelPad to test things, and every once in a while a couple of new line characters would disappear.)Also, I've noticed that there are a couple of other things that seem to get left behind on the host computer. "
%ALLUSERSPROFILE%\.mono
" & "%AppData%\.mono
"~3D1T0R
Awesome this fixed all the issues I had noticed. Thanks for spotting that leftover folder. I've added it to the DirectoryMove list (-=%appdata%\.mono)
Also, I found the documentation to get online working. Thanks for all the help. We can close this node now.
Edit: I actually coded a bit of software that auto creates the structure and semi-automatically configures appinfo.ini,launcher.ini, and takes care of appicon.ico. I use this instead of PortableApps.com Application Template 2.4. See my signature below.
Have an awesome day!
Jeff Savage ~ BetaLeaf
Oops, one more thing: add "
WaitForEXE1=Refresher.exe
" to your launcher.ini's[Launch]
section, I'm not certain about it, but it seems like it's some kind of auto updater, and if/when it triggers it'll break out of the portable environment if this line isn't present (tested).Yes, I saw that, but it doesn't account for everything required by the PAF spec, and PAL. I was just making sure you were aware of the Template, so that you could get a copy of the files that you don't have in this package.
Also... I hate to say it, as I personally have no issue with them, but links in signatures aren't allowed on this site. (I've personally been reprimanded about it by John T Haller a couple of times. )
~3D1T0R
I've added the waitforexe line. Yes you are right, when the game gets updated or detects it is corrupted, this is called. I'll check with John T Haller about my signature and if he deems it a problem, I shall remove the links, no questions asked. I definitely can understand why Mr. Haller wouldn't want links to outside Portableapps.com in signatures.
Edit: Mr. Haller got back with me and you were correct. I have removed the links. Thank you for bring this to my attention, 3D1T0R.
Have an awesome day!
Jeff Savage ~ BetaLeaf