You are here

my portableapp arcade game

10 posts / 0 new
Last post
ERKAN
Offline
Last seen: 15 years 10 months ago
Joined: 2008-04-21 04:40
my portableapp arcade game

Hi I am creating a new game but I'm a total programming loser please give me the code for the portable app launcher (For example 7zipportable.exe) and a clear backgroung with only portable and a usb flash on it everything else should be clean!
I promise to post it once I finished developing it!

digitxp
digitxp's picture
Offline
Last seen: 12 years 7 months ago
Joined: 2007-11-03 18:33
Don't worry

no need to be so excited, it's quite simple.
We don't create the actual apps, we create launchers for them that make the app portable. All the code can be found in the folder 'other' in any portable app installation. As for the portable splash, not even the developers have access to the source. Only John Haller (the lead dev, etc.) has it, and it's only for official apps. The rest of us use the Development Test Splash Screen.
Here, you can read the specs: https://portableapps.com/node/12851
Good luck on your arcade game!

Insert original signature here with Greasemonkey Script.

ERKAN
Offline
Last seen: 15 years 10 months ago
Joined: 2008-04-21 04:40
Thanks but how do I exactly

Thanks but how do I exactly make a launcher!
Cause I have already done everything but I don't know how to make the launcher exe file! Sad
I don't even know how was it programmed (C++ or Visual Basic)
And I only want it to run appdir\app\ssiv\ss4.exe!

digitxp
digitxp's picture
Offline
Last seen: 12 years 7 months ago
Joined: 2007-11-03 18:33
Oh, I forgot.

You need NSIS, found here.
Then depending on where the app leaves stuff behind, you can alter different launchers.
Here's a list:

If the app stores stuff here...|Use this launcher...
-------------------------------|-----------------------
In the registry (HKCU)         |7-Zip Portable
In %appdata%                   |KompoZer (?)
In it's own directory          |SumatraPDF
In the registry (HKLM)         |Eraser

You can compile it using the nsis compiler found in that NSIS package. Or if you want there is an NSIS portable here.
Just replace all the stuff with your app's credentials, add your copyright underneath John's (don't replace it), and change the legalcopyright thing in the viversionaddkey to PortableApps.com and Contributors.

Insert original signature here with Greasemonkey Script.

ERKAN
Offline
Last seen: 15 years 10 months ago
Joined: 2008-04-21 04:40
Who I am

Man i'm a total idiot and i have never worked with NSIS
Please tell me what do I have to do
What do i need to input!

Stevoisiak
Stevoisiak's picture
Offline
Last seen: 4 years 8 months ago
Joined: 2008-02-05 11:22
Wait,

You made the game? If it's already portable and in PAF format, you will not need a launcher.

Simplifying daily life through technology

digitxp
digitxp's picture
Offline
Last seen: 12 years 7 months ago
Joined: 2007-11-03 18:33
Okay,

Uh... at this point I think you will need to consult the manual...
http://www.nullsoft.com/free/nsis/makensis.htm
NSIS

Insert original signature here with Greasemonkey Script.

ERKAN
Offline
Last seen: 15 years 10 months ago
Joined: 2008-04-21 04:40
I don't get it

Okay I made the installer but how do I make a launcher
Here's the log:

MakeNSIS v2.37 - Copyright 1995-2008 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.

Processing config: 
Processing plugin dlls: "F:\NSIS\Plugins\*.dll"
 - AdvSplash::show
 - Banner::destroy
 - Banner::getWindow
 - Banner::show
 - BgImage::AddImage
 - BgImage::AddText
 - BgImage::Clear
 - BgImage::Destroy
 - BgImage::Redraw
 - BgImage::SetBg
 - BgImage::SetReturn
 - BgImage::Sound
 - Dialer::AttemptConnect
 - Dialer::AutodialHangup
 - Dialer::AutodialOnline
 - Dialer::AutodialUnattended
 - Dialer::GetConnectedState
 - InstallOptions::dialog
 - InstallOptions::initDialog
 - InstallOptions::show
 - LangDLL::LangDialog
 - Math::Script
 - NSISdl::download
 - NSISdl::download_quiet
 - Splash::show
 - StartMenu::Init
 - StartMenu::Select
 - StartMenu::Show
 - System::Alloc
 - System::Call
 - System::Copy
 - System::Free
 - System::Get
 - System::Int64Op
 - System::Store
 - TypeLib::GetLibVersion
 - TypeLib::Register
 - TypeLib::UnRegister
 - UserInfo::GetAccountType
 - UserInfo::GetName
 - UserInfo::GetOriginalAccountType
 - VPatch::GetFileCRC32
 - VPatch::GetFileMD5
 - VPatch::vpatchfile
 - nsDialogs::Create
 - nsDialogs::CreateControl
 - nsDialogs::CreateItem
 - nsDialogs::GetUserData
 - nsDialogs::OnBack
 - nsDialogs::OnChange
 - nsDialogs::OnClick
 - nsDialogs::OnNotify
 - nsDialogs::SelectFileDialog
 - nsDialogs::SelectFolderDialog
 - nsDialogs::SetRTL
 - nsDialogs::SetUserData
 - nsDialogs::Show
 - nsExec::Exec
 - nsExec::ExecToLog
 - nsExec::ExecToStack

!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "F:\PortableApps\SSIVPortable\Other\Source"

Processing script file: "F:\PortableApps\SSIVPortable\Other\Source\SSIVPortable.nsi"
!define: "PORTABLEAPPNAME"="Samurai Showdown IV Portable"
!define: "NAME"="SSIVPortable"
!define: "APPNAME"="SS IV"
!define: "VER"="0.9.9.1"
!define: "WEBSITE"="PortableApps.com/SSIVPortable"
!define: "DEFAULTEXE"="ss4.exe"
!define: "DEFAULTAPPDIR"="SSIV"
!define: "DEFAULTSETTINGSPATH"="settings"
Name: "Samurai Showdown IV Portable"
OutFile: "..\..\SSIVPortable.exe"
Caption: "Samurai Showdown IV Portable | PortableApps.com"
VIAddVersionKey: "ProductName" "Samurai Showdown IV Portable"
VIAddVersionKey: "Comments" "Allows SS IV to be run from a removable drive.  For additional details, visit PortableApps.com/SSIVPortable"
VIAddVersionKey: "CompanyName" "ZORAN666"
VIAddVersionKey: "LegalCopyright" "John T. Haller"
VIAddVersionKey: "FileDescription" "Samurai Showdown IV Portable"
VIAddVersionKey: "FileVersion" "0.9.9.1"
VIAddVersionKey: "ProductVersion" "0.9.9.1"
VIAddVersionKey: "InternalName" "Samurai Showdown IV Portable"
VIAddVersionKey: "LegalTrademarks" "PortableApps.com is a Trademark of Rare Ideas, LLC."
VIAddVersionKey: "OriginalFilename" "SSIVPortable.exe"
CRCCheck: On
WindowIcon: Off
SilentInstall: Silent
AutoCloseWindow: true
SetCompress: Auto
SetCompressor: /SOLID lzma
SetCompressorDictSize: 32 mb
SetDatablockOptimize: On
!include: "F:\NSIS\Include\MUI.nsh"
!include: "F:\NSIS\Contrib\Modern UI\System.nsh"
NSIS Modern User Interface version 1.8 - © 2002-2008 Joost Verburg (F:\NSIS\Contrib\Modern UI\System.nsh:8)
!define: "MUI_INCLUDED"=""
!define: "MUI_SYSVERSION"="1.8"
!define: "MUI_VERBOSE"="3"
!include: closed: "F:\NSIS\Contrib\Modern UI\System.nsh"
!include: closed: "F:\NSIS\Include\MUI.nsh"
Icon: "..\..\App\AppInfo\appicon.ico"
!define: "MUI_ICON"="..\..\App\AppInfo\appicon.ico"
!insertmacro: MUI_LANGUAGE
!insertmacro: end of MUI_LANGUAGE
LangString: "LauncherFileNotFound" 1033 "Samurai Showdown IV Portable cannot be started. You may wish to re-install to fix this issue. (ERROR: $MISSINGFILEORPATH could not be found)"
LangString: "LauncherAlreadyRunning" 1033 "Another instance of SS IV is already running. Please close other instances of SS IV before launching Samurai Showdown IV Portable."
LangString: "LauncherAskCopyLocal" 1033 "Samurai Showdown IV Portable appears to be running from a location that is read-only. Would you like to temporarily copy it to the local hard drive and run it from there?

Privacy Note: If you say Yes, your personal data within Samurai Showdown IV Portable will be temporarily copied to a local drive. Although this copy of your data will be deleted when you close Samurai Showdown IV Portable, it may be possible for someone else to access your data later."
LangString: "LauncherNoReadOnly" 1033 "Samurai Showdown IV Portable can not run directly from a read-only location and will now close."
Var: "PROGRAMDIRECTORY"
Var: "SETTINGSDIRECTORY"
Var: "ADDITIONALPARAMETERS"
Var: "EXECSTRING"
Var: "PROGRAMEXECUTABLE"
Var: "INIPATH"
Var: "DISABLESPLASHSCREEN"
Var: "ISDEFAULTDIRECTORY"
Var: "SECONDARYLAUNCH"
Var: "FAILEDTORESTOREKEY"
Var: "MISSINGFILEORPATH"
Error: command SectionEnd not valid outside Section
Error in script "F:\PortableApps\SSIVPortable\Other\Source\SSIVPortable.nsi" on line 94 -- aborting creation process

Please tell me what is wrong here!

[Pre tags added by mod SL]

digitxp
digitxp's picture
Offline
Last seen: 12 years 7 months ago
Joined: 2007-11-03 18:33
According to the log...

I would believe you typed 'SectionEnd' instead of 'Section...'

Insert original signature here with Greasemonkey Script.

consul
consul's picture
Offline
Last seen: 6 months 3 weeks ago
Joined: 2007-05-02 13:47
is this an open source game

or is it your version of the game Samurai Showdown IV?

Just an FYI, this website will promote only open source programs, though they do make launchers for folks who have closed source/privately owned programs.

Don't be an uberPr∅. They are stinky.

Log in or register to post comments