You are here

Attempt at P.A.P. DeSmuME

15 posts / 0 new
Last post
moriel5
moriel5's picture
Offline
Last seen: 11 years 2 months ago
Joined: 2010-08-31 10:18
Attempt at P.A.P. DeSmuME

Application: DeSmuME
Category: Games
Description: DeSmuME (formerly known as YopYop DS) is a Free/Open source Nintendo DS emulator for AmigaOS 4, Linux, Mac OS and Windows. Its name is derived from emu (which is short for emulator), DS and ME.

Download DeSmuME Portable Development Test 2 [22.4MB download / 54.0MB installed]
(MD5: 4b20cb447cfc2f3635db8478a8976e3f)

Download DeSmuME Portable Development Test 1 [22.4MB download / 54.0MB installed]
(MD5: 5c0ca70d36ccd07b78e38bbe06d7bc5b)

Release Notes:

Development Test 2 (2013-5-21):

  • Updated Release

Devlopment Test 1 (2013-5-7): Initial Release

have decided to make a P.A.P. version of DeSmuME, and for some strange reason I keep these lines at the end of the Launcher Generator log:

warning: !include: could not find: "F:\Documents\PortableApps.comProjects\DeSmuMEPortable\App\AppInfo\Launcher\Custom.nsh" (Segments.nsh:122)
warning: !include: could not find: "F:\Documents\PortableApps.comProjects\DeSmuMEPortable\App\AppInfo\Launcher\Debug.nsh" (Debug.nsh:87)

I don`t understand why I keep getting these lines, and while I have probably made a mistake, I can`t understand what it is.

Also, the Launcher Generator can`t seem to able to open the icon I had put in the AppInfo folder, showing the following line:

Error while loading icon from "F:\Documents\PortableApps.comProjects\DeSmuMEPortable\App\AppInfo\appicon.ico": can't open file.

I would like to recieve help, as this my first serious attempt at Portablizing software.

Bennieboj
Bennieboj's picture
Offline
Last seen: 5 years 4 months ago
Joined: 2010-09-16 07:28
file doesn't exist

The first 2 errors aren't a problem.

The second error usually means that the file doensn't exist (or it is locked), which makes the launcher stop. Make sure the appicon.ico file exists, otherwise it won't be able to complete the process.

Yes, I set the working directory!

Ken Herbert
Ken Herbert's picture
Online
Last seen: 1 min 29 sec ago
DeveloperModerator
Joined: 2010-05-25 18:19
The first two warnings are

The first two warnings are just the Launcher attempting to include optional files and finding that they aren't there.

Custom.nsh is used to provide custom NSIS portabilization code where the standard Launcher options aren't enough, and Debug.nsh is to specify that you want (extremely) verbose logging of exactly what the Launcher is doing while it is running.

Regarding the icon, as Bennieboj says it means that appicon.ico does not exist. If you put an icon in the AppInfo folder it needs to be called "appicon.ico", any other name won't work.

moriel5
moriel5's picture
Offline
Last seen: 11 years 2 months ago
Joined: 2010-08-31 10:18
The file is there.

I did put the file in that directory, I even had that icon specificaly chosen, converted, and renamed, in the first place.

So yes, it's there, and with the correct name (and extesion name).

I used GIMP to convert it.

Ken Herbert
Ken Herbert's picture
Online
Last seen: 1 min 29 sec ago
DeveloperModerator
Joined: 2010-05-25 18:19
Strange

Can you upload it somewhere and link it for us?

Then we can check out the file directly and see if there is anything wrong in the actual file.

moriel5
moriel5's picture
Offline
Last seen: 11 years 2 months ago
Joined: 2010-08-31 10:18
Typo

It`s alright, everything`s alright. It turns out I had made a typo.
It`s working perfectly now.

Now I just can`t seem to make the icons show on the platform.

I`ll probably upload the installer next week, having almost no time to work on the program.

Bennieboj
Bennieboj's picture
Offline
Last seen: 5 years 4 months ago
Joined: 2010-09-16 07:28
Platform

The platform simply shows all exe files inside all folders inside the "PortableApps" folder.

Yes, I set the working directory!

moriel5
moriel5's picture
Offline
Last seen: 11 years 2 months ago
Joined: 2010-08-31 10:18
Platform Icons

The only place the icons don`t show the icons on, is the Platform.

Here is the installation file. If you wan`t to check out the problem, then try it out.

DeSmuMEPortable_0.9.9_SVN.paf.exe (22.4 MB)
https://mega.co.nz/#!45lF3K6b!UY-gig8kbPMLa1uw8cacsw-lSygMNqWiJlDWbbOOTis

Bennieboj
Bennieboj's picture
Offline
Last seen: 5 years 4 months ago
Joined: 2010-09-16 07:28
Solution found =)

Manual about icons.
If the application also uses multiple icons (as detailed above), these additional icons are named as appicon1.ico (appicon1_16.png and appicon1_32.png), appicon2.ico, etc. The numbers correspond to Start1, Start2, etc within the Control section.

So, what I did (and what hopefully solves your problem): copy appicon.ico three times and rename them to appicon1.ico, appicon2.ico and appicon3.ico.
Recompile the launcher (not sure if needed, can't go wrong doing so).
Refresh icons in PAP (right click, refresh icons or something =p)

Hope this helps!

Yes, I set the working directory!

Ken Herbert
Ken Herbert's picture
Online
Last seen: 1 min 29 sec ago
DeveloperModerator
Joined: 2010-05-25 18:19
A few pointers

Looking through your files I found a lot of issues. I'll start with the ones I can see without actually running DeSmuME:

Icons

  • You can remove the icons in AppInfo\Launcher, only the ones in AppInfo are required
  • You can remove the appicon_16.ico file, you only need appicon.ico and the .png files
  • Within your appicon.ico you need 16, 32 and 48 pixel versions in both 8-bit and 32-bit (so 6 icons within the file, with an optional icon at 256 pixels in 32-bit)
  • Because you have a multiple executable package, you also need to create a separate copy of appicon.ico and both .png images for each item you want listed in the Platform with the following naming scheme: appicon1.ico, appicon1_16.png, appicon1_32.png, appicon2.ico, appicon2_16.png etc. for as many executables as you want listed in the Platform (three in your case) - this is why your icons aren't showing up

appinfo.ini

  • You can remove the InstallType= line since nothing is being set
  • Unless there is an EULA in the package you can remove EULAVersion=1
  • You should mark CommercialUse=true as the GPL allows it
  • The [FileTypeIcons] section won't do anything unless you have specified an [Associations] section with some file types associated
  • It looks like DeSmuME is English only (can't see any language files) so you should set it to Language=English (or am I missing something?)

launcher.ini x3

  • I think you are a little confused with the [FilesMove] entry in each launcher.ini. This entry makes the file on the left side (eg. settings\DeSmuME_devPortable.ini within the Data folder) move to the folder on the right side (eg. %PAL:AppDir%\DeSmuME_dev) when the app starts. I would presume that all three executables actually used desmume.ini while they are running. If that is the case you would actually want one of the following:
    To have all executables use the same settings: desmume.ini=%PAL:AppDir%\DeSmuME in all three launcher files or to have separate settings for each executable: DeSmuME\desmume.ini=%PAL:AppDir%\DeSmuME
    DeSmuMEdev\desmume.ini=%PAL:AppDir%\DeSmuME
    DeSmuMEnosse2\desmume.ini=%PAL:AppDir%\DeSmuME
    (one in each launcher.ini as appropriate).

    Either way you will run into trouble when running more than one of the components at the same time, which you may be able to prevent from happening with some custom code (not my field, so someone else will have to give you a hand there).

  • You aren't updating any of the paths in desmume.ini, so portability will break as soon as you move to a computer that assigns a different drive letter. Have a look at the [FileWriteN] section of the Launcher docs, and also take a look at an official app that updates paths like Pencil Project Portable (FileWrite 4, 5, 6 are the ones in Pencil that would be of use to you).

Other

  • You've got the name of the DefaultData folder as DeafaultData - it won't be used like this
  • If you are supplying desmume.ini in the DefaultData folder, it shouldn't also be in App/DeSmuME
  • You have added AviFiles, Cheats and Lua folders to DefaultData but never do anything with them. Should they be moved to/from %PAL:AppDir%\DeSmuME with [DirectoriesMove]?
  • Should the Roms folder also be in Data (and DefaultData if the app can't create it itself)?
  • Your desmume.ini in DefaultData has paths from you running the app (d:\My Documents\Documents\Roms\* and d:\My Documents\PortableApps\desmume\*). These will break portability. If they don't need to be set remove the lines, or if they do need to be set, set them as eg. DEFAULTROMSDIR, DEFAULTBATTERYDIR etc. and add a [FileWriteN] to the launcher.ini files for each to replace it with eg. %PAL:DataDir%\Roms. Have a look at LAN Messenger Portable's [FileWrite6] and compare with the App\DefaultData\Roaming\LAN Messenger.ini file for an example of this in an official app.

Sorry to overload you with stuff there, but if you need any help or clarification let us know.

moriel5
moriel5's picture
Offline
Last seen: 11 years 2 months ago
Joined: 2010-08-31 10:18
You`re right.

I`m sorry, thanks for the info.
Don`t worry, you`re not overloading me, that`s the kind of information I`ve been looking for.
And I`m sorry for not having been here for a long time, I havn`t been on a computer for a long time.
But here`s the next version:
DeSmuMEPortable_0.9.9_SVN_Test_2.paf.exe (22.4 MB)
https://mega.co.nz/#!95szxJ5B!Y7Gq7GkAU5pSc41804MrKw7HUURuWncPSDwLGZ8WvlE

sst
Offline
Last seen: 1 year 2 months ago
Joined: 2009-01-23 04:52
Need standart portableapps forum beta style.

>>> moriel5 - May 21, 2013 - 2:25pm
>>> But here`s the next version:
>>> DeSmuMEPortable_0.9.9_SVN_Test_2.paf.exe (22.4 MB)

Thanks for the download link, ...

Also, ... made sure that your main forum message of "DeSmuMEPortable", is the standart portableapps forum beta style.

Then please look at that, ...
Development Test - Forum Posting Layout = https://portableapps.com/node/11965

An example, see below, ...

Application: DeSmuME
Category: Games
Description: DeSmuME (formerly known as YopYop DS) is a Free/Open source Nintendo DS emulator for AmigaOS 4, Linux, Mac OS and Windows. Its name is derived from emu (which is short for emulator), DS and ME.

Download DeSmuME Portable 0.9.9 Development Test 2 [22.4MB download / 54,0MB installed]
(MD5: 4b20cb447cfc2f3635db8478a8976e3f)

Release Notes:

Development Test 2 (2013-5-21):

Updated Release

have decided to make a P.A.P. version of DeSmuME, and for some strange reason I keep these lines at the end of the Launcher Generator log:

warning: !include: could not find: "F:\Documents\PortableApps.comProjects\DeSmuMEPortable\App\AppInfo\Launcher\Custom.nsh" (Segments.nsh:122)
warning: !include: could not find: "F:\Documents\PortableApps.comProjects\DeSmuMEPortable\App\AppInfo\Launcher\Debug.nsh" (Debug.nsh:87)

I don`t understand why I keep getting these lines, and while I have probably made a mistake, I can`t understand what it is.

Also, the Launcher Generator can`t seem to able to open the icon I had put in the AppInfo folder, showing the following line:

Error while loading icon from "F:\Documents\PortableApps.comProjects\DeSmuMEPortable\App\AppInfo\appicon.ico": can't open file.

I would like to recieve help, as this my first serious attempt at Portablizing software.

moriel5
moriel5's picture
Offline
Last seen: 11 years 2 months ago
Joined: 2010-08-31 10:18
Sorry

Thanks, I`m changing it now.
I`m sorry for not having been here for a long time, my school ISP has gone crazy and blocked every single website, oonly now has it gone back to normal.
And I`m in the middle of exams. 12th Grade.

Edit: Taken care of, thanks.

starrysky
Offline
Last seen: 8 years 10 months ago
Joined: 2013-01-26 19:49
Version to use

This was buried in the documentation:

"Use dev if you are a developer and want the gdb stub. Use nosse if the regular exe crashes for you because you are on an old computer. desmume.exe uses some SSE2 optimizations for 3D matrix calculations which have been disabled in desmume_nosse.exe. Any modern Intel CPU (AMD or intel) will support SSE2."
Otherwise, just use the regular version.

I also made independent versions as well as a 64bit version. I'll probably upload them at some point if anyone is interested or if moriel5 doesn't get back to this project.

moriel5
moriel5's picture
Offline
Last seen: 11 years 2 months ago
Joined: 2010-08-31 10:18
That's a good idea

Thank you very much, I'm extremely sorry for not being online for so long, but simply put, I don't get to be on a computer very often, in general.
I'm writing this from my phone at this moment (and it's not a smartphone (Nokia classic c2600, no 3G even)).
And secondly, I am definitely going to need special code, any help is welcome, as I know nothing in it.
So I'll work on it when I'll be able to, but your idea is the right one.
So thank you very much, and please don't think I'm gone.

Log in or register to post comments