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

Reply
 
Thread Tools Display Modes
  #1  
Old 30-05-2017, 19:21
gatosky1620's Avatar
gatosky1620 gatosky1620 is offline
Registered User
 
Join Date: Oct 2011
Location: Perú
Posts: 287
Thanks: 13
Thanked 965 Times in 131 Posts
gatosky1620 is on a distinguished road
Problem with Registry in ciu 2035 or above

Im creating my own Assassin creed 3 v1.06 conversion, but i have this problem when add the registry.iss file.

Attached Files
File Type: rar Registry.rar (640 Bytes, 12 views)
Reply With Quote
Sponsored Links
  #2  
Old 30-05-2017, 23:22
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,425
Thanks: 1,078
Thanked 7,037 Times in 2,665 Posts
KaktoR is on a distinguished road
Yes, same error i have run into weeks above.

I don't have any solution for that.

I have compared with AC Rogue registry.iss and the only difference is the game name.

So it has something to do with the name of the game - strange.

http://fileforums.com/showpost.php?p...postcount=1258
__________________
Haters gonna hate

Last edited by KaktoR; 30-05-2017 at 23:38.
Reply With Quote
  #3  
Old 30-05-2017, 23:39
mikey26 mikey26 is offline
Registered User
 
Join Date: Dec 2008
Location: south africa
Posts: 276
Thanks: 124
Thanked 110 Times in 61 Posts
mikey26 is on a distinguished road
Send a message via AIM to mikey26 Send a message via Yahoo to mikey26
Hi Mate
pull the reg keys and layout from this script i gave them to revo a long time ago.
And those where working fine.

http://fileforums.com/showthread.php?t=93761
Reply With Quote
  #4  
Old 31-05-2017, 00:12
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
[Registry]
Root: HKLM; SubKey: SOFTWARE\Ubisoft\{code:GetAppName}\1.01; Flags: uninsdeletekeyifempty

[CustomMessages]
en.AppName=Assassin%1s Creed(R) III

[Code]
function GetAppName(Param: string): string;
begin
Result:=FmtMessage(ExpandConstant('{cm:AppName}'),[chr(39)]) ;
end;

Cheers
Reply With Quote
The Following User Says Thank You to peterf1999 For This Useful Post:
KaktoR (31-05-2017)
  #5  
Old 31-05-2017, 01:48
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,425
Thanks: 1,078
Thanked 7,037 Times in 2,665 Posts
KaktoR is on a distinguished road
Have not tested yet, but this should work?

Code:
#define AC3Registry

...

#ifdef AC3Registry
function GetAppName(Param: string): string;
  begin
    Result:=FmtMessage(ExpandConstant('{cm:AppName}'),[chr(39)]) ;
end;

#else

function GetAppName(Default:String):String;
begin
  if not (GetIniString('Messages', 'ApplicationName', '', ExpandConstant('{tmp}\' + ActLang + '.txt')) = '') and (GetValStr('InstallOptions', 'ApplicationName' + ActLangShort, '') = '') then
    Result := GetIniString('Messages', 'ApplicationName', '', ExpandConstant('{tmp}\' + ActLang + '.txt'))
  else
    Result:=GetValStr('InstallOptions', 'ApplicationName' + ActLangShort, GetOrigAppName(''))
end;

#endif
Will test it further on weekend. But i am sure i have forgot something important.

And a question: Can i use #ifdef for this on [CustomMessages] too? If yes, it is neccessary at all?

Edit: Ok, it seems to work. I have just switched #define to ON. But as i said, will test it with registry.iss on weekend.

Edit 2: Here is the full code i am using for the fast test
Code:
#define AC3Registry
Code:
[CustomMessages]
#ifdef AC3Registry
eng.AppName=Assassin%1s Creed(R) III
#endif
Code:
#ifdef AC3Registry
function GetAppName(Param: string): string;
  begin
    Result:=FmtMessage(ExpandConstant('{cm:AppName}'),[chr(39)]) ;
end;

#else

function GetAppName(Default:String):String;
begin
  if not (GetIniString('Messages', 'ApplicationName', '', ExpandConstant('{tmp}\' + ActLang + '.txt')) = '') and (GetValStr('InstallOptions', 'ApplicationName' + ActLangShort, '') = '') then
    Result := GetIniString('Messages', 'ApplicationName', '', ExpandConstant('{tmp}\' + ActLang + '.txt'))
  else
    Result:=GetValStr('InstallOptions', 'ApplicationName' + ActLangShort, GetOrigAppName(''))
end;
#endif
Attached Images
File Type: png Unbenannt.png (27.7 KB, 114 views)
__________________
Haters gonna hate

Last edited by KaktoR; 31-05-2017 at 01:55.
Reply With Quote
  #6  
Old 31-05-2017, 20:16
gatosky1620's Avatar
gatosky1620 gatosky1620 is offline
Registered User
 
Join Date: Oct 2011
Location: Perú
Posts: 287
Thanks: 13
Thanked 965 Times in 131 Posts
gatosky1620 is on a distinguished road
but the exactly problem is that i want use the 2040 version, so anyone have a language changer only for AC3 1.06
Reply With Quote
  #7  
Old 01-06-2017, 01:49
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,425
Thanks: 1,078
Thanked 7,037 Times in 2,665 Posts
KaktoR is on a distinguished road
It's not possible without the source code.
__________________
Haters gonna hate
Reply With Quote
  #8  
Old 01-06-2017, 17:39
gatosky1620's Avatar
gatosky1620 gatosky1620 is offline
Registered User
 
Join Date: Oct 2011
Location: Perú
Posts: 287
Thanks: 13
Thanked 965 Times in 131 Posts
gatosky1620 is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
It's not possible without the source code.
so how somebody knows how create a bat file to add the reg entries with the folder location, the system language, and the windows architecture without edit first the bat file?
Reply With Quote
  #9  
Old 02-06-2017, 20:33
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,038
Thanks: 1,746
Thanked 2,224 Times in 761 Posts
Cesar82 is on a distinguished road
Error fix

Quote:
Originally Posted by gatosky1620 View Post
Im creating my own Assassin creed 3 v1.06 conversion, but i have this problem when add the registry.iss file.

Possible Solution. Work for me...

insert this line in script
Code:
#define FileLine StringChange(FileLine, "'", "''")
in this code part...
Code:
#sub DeleteRegistryValue
  #if Pos("Root:",FileLine) > 0 & Pos("SubKey:",FileLine) > 0 & Pos("ValueName:",FileLine) > 0
    #define FileLine StringChange(FileLine, ": ", ":")
    #define FileLine StringChange(FileLine, "; ", ";")
    #define FileLine StringChange(FileLine, """", "")
    #define FileLine StringChange(FileLine, "'", "''")
    #define RootKey Copy(FileLine, Pos("Root:",FileLine) + 5, Len(FileLine))
This function contain error, and if insert a key and not value not remove from registry. In Registry.iss from Arsassin's Creed 3 the first eight lines not remove from windows registry on uninstall game (Firsts Lines: Assassin's Creed(R) III not contain value.. only root and key).

To fix error undelet keys from registry replace original "sub DeleteRegistryValue" for this part in script
Code:
#sub DeleteRegistryValue
  #if Pos("Root:", FileLine) > 0 & Pos("SubKey:", FileLine) > 0
    #define FileLine StringChange(FileLine, ": ", ":")
    #define FileLine StringChange(FileLine, "; ", ";")
    #define FileLine StringChange(FileLine, """", "")
    #define FileLine StringChange(FileLine, "'", "''")
    #define RootKey Copy(FileLine, Pos("Root:",FileLine) + 5, Len(FileLine))
    #define RootKey Copy(RootKey, 0, Pos(";",RootKey)-1)
    #define SubKeyName Copy(FileLine, Pos("SubKey:",FileLine) + 7, Len(FileLine))
    #define SubKeyName Copy(SubKeyName, 0, Pos(";",SubKeyName)-1)
    #if Pos("ValueName:", FileLine) > 0
      #define ValueName Copy(FileLine, Pos("ValueName:",FileLine) + 10, Len(FileLine))
      #define ValueName Copy(ValueName, 0, Pos(";",ValueName)-1)
    #else
      #define ValueName ""
    #endif
    if not (not IsWin64 and (Pos('64', '{#RootKey}') > 0)) then begin
      RegDeleteValue({#RootKey}, '{#SubKeyName}', '{#ValueName}');
      CurrentRegKey := '{#SubKeyName}' + '\' + '{#ValueName}';
      repeat
        CurrentRegKey := ExtractFilePath(CurrentRegKey);
        SetLength(CurrentRegKey, Length(CurrentRegKey) - 1);
        RegDeleteKeyIfEmpty({#RootKey},CurrentRegKey);
      until RegKeyExists({#RootKey},CurrentRegKey);
    end;

  #endif
#endsub
Reply With Quote
  #10  
Old 03-06-2017, 08:53
mikey26 mikey26 is offline
Registered User
 
Join Date: Dec 2008
Location: south africa
Posts: 276
Thanks: 124
Thanked 110 Times in 61 Posts
mikey26 is on a distinguished road
Send a message via AIM to mikey26 Send a message via Yahoo to mikey26
If some knows how Yener/Bamse encrypted the 2040 script i am happy to help make the changes for those who have the 2040 beta 5 script.but i will not release the actually script.
but it need to be encrypted like the last release by Bamse.
Reply With Quote
  #11  
Old 03-06-2017, 09:25
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,425
Thanks: 1,078
Thanked 7,037 Times in 2,665 Posts
KaktoR is on a distinguished road
Didn't BAMsE gave you the source compiler?
__________________
Haters gonna hate
Reply With Quote
  #12  
Old 03-06-2017, 15:13
mikey26 mikey26 is offline
Registered User
 
Join Date: Dec 2008
Location: south africa
Posts: 276
Thanks: 124
Thanked 110 Times in 61 Posts
mikey26 is on a distinguished road
Send a message via AIM to mikey26 Send a message via Yahoo to mikey26
no he did not mate i just have the 2.0.4.0 beta5 iss file so i could add different compressions.i am not good with inno.so if someone can help make compiler and it must not be able to be unpacked with inno unpacker.
Reply With Quote
  #13  
Old 04-06-2017, 06:04
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,425
Thanks: 1,078
Thanked 7,037 Times in 2,665 Posts
KaktoR is on a distinguished road
I would say ask altef_4, i guess it's his source code (compiler) anyway.

And he is the only person around here i know of knowing such things about protection.
__________________
Haters gonna hate
Reply With Quote
Reply

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
dvd playing problem... themis_t CD/DVD Software & Utilities 6 20-10-2004 14:44
Problem with Record Now Max ver 4.5 brkr101 PS2 Games 2 22-04-2004 22:40
problem with my xbox mrlucky XBox Games 1 11-01-2004 09:38
A problem about NFS Underground Gilvin PC Games 1 22-11-2003 22:17
Problem with pics on web pages and cookies EVOEvo CD/DVD-Writers 3 05-10-2003 18:57



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


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