Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #136  
Old 31-10-2021, 07:50
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 744
Thanks: 1,206
Thanked 1,561 Times in 538 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by giruthanders View Post
Sorry if this is a stupid question but how do I fix this error when trying to launch the game in the installer?

This happens when I check "Launch [game]" after the install is finished. The desktop shortcut works though

"Internal error: CallSpawnServer: Unexpected response: $0"
See if the line given below does not contain ";" before the line, or if you correctly set the path to the game's executable relative to the {app} installation folder.
Code:
#define GameExec "bin\game.exe"
Reply With Quote
Sponsored Links
  #137  
Old 31-10-2021, 13:55
sakhjack sakhjack is offline
Registered User
 
Join Date: Jul 2021
Location: Basement
Posts: 8
Thanks: 7
Thanked 2 Times in 2 Posts
sakhjack is on a distinguished road
Language not defined blank space

Language selection has skin, but now if some are not defined there is blank space in it's place
Reply With Quote
  #138  
Old 31-10-2021, 15:15
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 744
Thanks: 1,206
Thanked 1,561 Times in 538 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by sakhjack View Post
Language selection has skin, but now if some are not defined there is blank space in it's place
Sorry about that.

In the [Languages] section of the script, simply enter the text highlighted in red color below (on script line 294 here).

Code:
#sub CreateLangList
  #if defined(LangSection) && (FileLine != "") && (Pos(";", FileLine) != 1) && (Pos("[", FileLine) != 1)
    #expr LangList[Count] = FileLine
    #expr Count++
  #elif Pos(LowerCase("[Languages]"), LowerCase(FileLine)) > 0
    #define public LangSection
  #endif
#endsub
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
sakhjack (31-10-2021)
  #139  
Old 01-11-2021, 05:10
giruthanders giruthanders is offline
Registered User
 
Join Date: Oct 2021
Location: Japan
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
giruthanders is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
See if the line given below does not contain ";" before the line, or if you correctly set the path to the game's executable relative to the {app} installation folder.
Code:
#define GameExec "bin\game.exe"
Thank you for responding! Yes, it does not contain a ; before the line but still didn't work. In the end I found that adding "runascurrentuser" to the flags made it work. Hope this helps anyone who had the same problem I did.
Reply With Quote
The Following User Says Thank You to giruthanders For This Useful Post:
Cesar82 (01-11-2021)
  #140  
Old 01-11-2021, 08:52
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 744
Thanks: 1,206
Thanked 1,561 Times in 538 Posts
Cesar82 is on a distinguished road
Light Installer Script 1.0.1.0

Added Light Installer Script 1.0.1.0 in first post.
Code:
- Added support for Persian (Farsi) language to Light Installer Script (Thanks to Gehrman for collaboration). 
- Added support for skinsharp skins (SkinH.dll library by Shegorat) to Light Installer Script. 
  >> The library of the skinsharp does not support special characters like cyrillic characters.
  >> So languages like Russian and Japanese and Persian should get broken using skinsharp.
- Fixed some minor bugs.
PS: SkinSharp skins only work if compiling with Inno Setup 6.0 or higher.
Attached Images
File Type: png snap2972.png (154.3 KB, 77 views)

Last edited by Cesar82; 01-11-2021 at 09:26.
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
Gehrman (03-11-2021)
  #141  
Old 01-11-2021, 10:31
giruthanders giruthanders is offline
Registered User
 
Join Date: Oct 2021
Location: Japan
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
giruthanders is on a distinguished road
Remember Default Installation Directory

Hello, I would like to ask how I could make the setup remember the folder I install my games in, like FitGirl's?

The default is C:\Program Files, but for example I change it to D:\Games. I want the installer to remember so that the next game I install, it will default to that directory instead of going back to C.
Reply With Quote
  #142  
Old 02-11-2021, 10:12
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 744
Thanks: 1,206
Thanked 1,561 Times in 538 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by giruthanders View Post
Hello, I would like to ask how I could make the setup remember the folder I install my games in, like FitGirl's?

The default is C:\Program Files, but for example I change it to D:\Games. I want the installer to remember so that the next game I install, it will default to that directory instead of going back to C.
FitGirl installers look for the next drive other than the drive the system is installed on and always install the game in a "Games" subfolder.
It doesn't memorize your last choice, it always installs in a "Games" folder and on the same drive.
Even if you choose "E:\My Games", assuming the system is installed on the "C:" drive in the next install it will suggest "D:\Games" as in the first install (Correct me if I'm wrong).

If you want similar behavior change the line in the [Setup] section of the script.
Code:
from:
DefaultDirName={#DefaultDir}\{#GameName}

to:
DefaultDirName={code:NoSD}\Games\{#GameName}
Then paste this code below into the [ Code] section of the script.
Code:
const
  DRIVE_FIXED = 3;

function GetLogicalDriveStrings(nLenDrives: DWORD; lpDrives: String): DWORD;
  external '[email protected] stdcall delayload';

function GetDriveType(lpDisk: String): DWORD;
  external '[email protected] stdcall delayload';

function NoSD(Param: String): String;
var
  Drive: String;
  Buffer: String;
begin
  SetLength(Buffer, 255);
  SetLength(Buffer, GetLogicalDriveStrings(254, Buffer));
  Result := ExpandConstant('{sd}');
  while Pos(#0, Buffer) > 0 do
  begin
    Drive := Copy(Buffer, 1, Pos(#0, Buffer) - 1);
    if (GetDriveType(Drive) = DRIVE_FIXED) and (CompareText(Drive, ExpandConstant('{sd}\')) <> 0) then
    begin
      Result := RemoveBackslash(Drive);
      Break;
    end;
    Delete(Buffer, 1, Pos(#0, Buffer));
  end;
end;
I hope that's what you need.

Last edited by Cesar82; 02-11-2021 at 10:25.
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
Gehrman (03-11-2021), giruthanders (05-11-2021)
Reply

Tags
asis, ciu, inno, installer, ultraarc

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ultimate Conversion Compressor (UCC) vollachr Conversion Tutorials 55 26-04-2021 10:27
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 03:05
[Help] need Advanced Installer script with Razor1911's UltraArc module rez3vil Conversion Tutorials 1 29-09-2016 05:10
How many forum members does it take to change a light bulb? rms2001 XBox Games 6 12-01-2004 06:31



All times are GMT -7. The time now is 04:02.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Copyright 2000-2020, FileForums @ https://fileforums.com