Tutorial RAGS How To Edit RAGS Games

Spamalot123

New Member
Apr 3, 2021
2
0
I did a guide a while ago on how to change ragsdesigner so that it just ignore password. I didn't want to send the actual file.

  1. Go download along with reflexil for ilspy
  2. Extract reflexil inside the ilspy folder and run ilspy. Once in IlSpy click on File-> Open and select RagsDesigner.exe
  3. Go find the function c5ea4afc272451aac547dfe37a91a29b3 RagsDesigner (2.4.16.0) -> RagsDesigner -> Form1 - > c5ea4afc272451aac547dfe37a91a29b3(string text)
  4. Click on View -> Reflexil(if you don't see this then you didnt extract the reflexil plugin at the right place) Now you will see a reflexil window on the bottom.
  5. Find line 195 and change ldc.i4.0 to ldc.i4.1
  6. Also modify the the line 344 from ldc.i4.3 to ldc.i4.0
Different subversion probably have different line. Just ask if you need any help finding it.

Edit: I just notice that the guy that cracked this version deobfuscated the code. Changing the line and name.

If you use OP version you need to go to Method_0 (string): void. Line 143 for ldc.i4.0 to ldc.i4.1 and line 206 for ldc.i4.3 to ldc.i4.0
Do you have any guidance for how to edit Import Package to do the same?
 

Pararock

Member
Aug 17, 2016
316
372
Sure,

I'll use dnspy instead of ilspy.

1. Download dnspy
2. open RagsDesigner.exe
3. Open Form1
1617561468239.png
4. ctrl+f bPasswordProtected until you find the one around 15116(number could be different for you this is a clean .exe) to find
1617561500850.png
5. Right->click on if (game.bPasswordProtected) and select edit IL instructions
1617561551901.png
6.Right-click on line 231 and select convert to unconditional branches and click ok.
1617561577842.png
7. Click on file -> Save module -> change location to somewhere where you can save if you don’t run dnspy as admin.
8. Copy in explorer

This method should also works for the password protection, it's one the first result when you search for bPasswordProtected
 

Spamalot123

New Member
Apr 3, 2021
2
0
Hmm. I'm not finding the same If statement. bPasswordProtected only occurs once under Form1, and it's here at line 9041.

1617597991181.png

Right clicking and editing instructions gets me a far shorter page of code.

1617598072425.png

Can you advise where I might be going wrong? FYI, this is for RagsDesigner 2.4.16.0.

Thanks for taking the time!
 

Pararock

Member
Aug 17, 2016
316
372
You left a space after bPasswordProtected when you copy pasted it, you can see it with the highlighted text on screenshot #1
1617636652067.png
 

Litius

New Member
Jun 8, 2020
1
0
I did a guide a while ago on how to change ragsdesigner so that it just ignore password. I didn't want to send the actual file.

  1. Go download along with reflexil for ilspy
  2. Extract reflexil inside the ilspy folder and run ilspy. Once in IlSpy click on File-> Open and select RagsDesigner.exe
  3. Go find the function c5ea4afc272451aac547dfe37a91a29b3 RagsDesigner (2.4.16.0) -> RagsDesigner -> Form1 - > c5ea4afc272451aac547dfe37a91a29b3(string text)
  4. Click on View -> Reflexil(if you don't see this then you didnt extract the reflexil plugin at the right place) Now you will see a reflexil window on the bottom.
  5. Find line 195 and change ldc.i4.0 to ldc.i4.1
  6. Also modify the the line 344 from ldc.i4.3 to ldc.i4.0
Different subversion probably have different line. Just ask if you need any help finding it.

Edit: I just notice that the guy that cracked this version deobfuscated the code. Changing the line and name.

If you use OP version you need to go to Method_0 (string): void. Line 143 for ldc.i4.0 to ldc.i4.1 and line 206 for ldc.i4.3 to ldc.i4.0
I must be missing something between steps 2.) and 3.) becouse I cannot see any code or function. It only displays a folder with icon and version
 

Pararock

Member
Aug 17, 2016
316
372
I must be missing something between steps 2.) and 3.) becouse I cannot see any code or function. It only displays a folder with icon and version
It's been several years since I've used ILspy, but if you look later in the thread, there's video for dnyspy that should cover the missing part and be similar enough to what ilspy looks to be useful. If not, I could always gives it another go.

See: https://f95zone.to/threads/how-to-edit-rags-games.75/post-14566
 

geriatre

Member
Aug 22, 2016
495
665
You can crack it yourself easily with DNSpy =>

Download it and open the designer. Go to
RagsDesigner =>WPFRagsDesigner => RagsDesigner => wait for it to decompile and click ctrl+f and search RagsDesigner.TheGame.bPasswordProtected you should get to the function a( string A_0) right-click and click edit IL. You shuold see ldc.i4.0 followed by stloc.s and ldc.i4.0 change the first ldc.i4.0 to ldc.i4.3 and the second ldc.i4.0 to ldc.i4.1. After this save the module(might have to save to the desktop and copy it after, due to permission) and run.






Edit: Doh, that only for the password, give me a few minutes for the read only protection.
Here:
Thanks, that was very helpful, managed to remove the password protection and the read-only mode. :)
 

Luminoto

New Member
Mar 13, 2019
4
5
Hello,
Thanks for all those tips and guides.
More than edit code and values from a Rags game, I'm wondering if editing and switching images from the original game is a simple thing to do.
(Game I want to edit is No Haven, using Rags v.2.6.1)
 

nerogaf

Member
Aug 23, 2019
469
285
I know this request goes to to the "Regalia - Enhanced RAGS 2.x Player For The Browser" thread:
https://f95zone.to/threads/regalia-enhanced-rags-2-x-player-for-the-browser.4829/



Still, could someone please convert these games?

I) Slavers Game Chapter IV: Nancy's Hospital Problems [v0.22] [Imp16k4]:
https://f95zone.to/threads/slavers-game-chapter-iv-nancys-hospital-problems-v0-22-imp16k4.13834/

II) Slavers Game [Ch. 1-2 v0.18.03] [Imp16k4]:
https://f95zone.to/threads/slavers-game-ch-1-2-v0-18-03-imp16k4.2520/

III) Miss Adventure [v1.249] [Dollmistress]:
https://f95zone.to/threads/miss-adventure-v1-249-dollmistress.4343/

IV) Kennel K-9 [WIP] [PacifistGames]:
https://f95zone.to/threads/kennel-k-9-wip-pacifistgames.278/

V) Veronika [v0.9.1] [Pacifist03]:
https://f95zone.to/threads/veronika-v0-9-1-pacifist03.1231/

VI) Shield High [v0.11] [Pudding Games]:

https://f95zone.to/threads/shield-high-v0-11-pudding-games.11921/
 
Last edited:

nerogaf

Member
Aug 23, 2019
469
285
I know this request goes to to the "Regalia - Enhanced RAGS 2.x Player For The Browser" thread:
https://f95zone.to/threads/regalia-enhanced-rags-2-x-player-for-the-browser.4829/



Still, could someone please convert these games?

I) Slavers Game Chapter IV: Nancy's Hospital Problems [v0.22] [Imp16k4]:
https://f95zone.to/threads/slavers-game-chapter-iv-nancys-hospital-problems-v0-22-imp16k4.13834/

II) Slavers Game [Ch. 1-2 v0.18.03] [Imp16k4]:
https://f95zone.to/threads/slavers-game-ch-1-2-v0-18-03-imp16k4.2520/

III) Miss Adventure [v1.249] [Dollmistress]:
https://f95zone.to/threads/miss-adventure-v1-249-dollmistress.4343/

IV) Kennel K-9 [WIP] [PacifistGames]:
https://f95zone.to/threads/kennel-k-9-wip-pacifistgames.278/

V) Veronika [v0.9.1] [Pacifist03]:
https://f95zone.to/threads/veronika-v0-9-1-pacifist03.1231/

VI) Shield High [v0.11] [Pudding Games]:
https://f95zone.to/threads/shield-high-v0-11-pudding-games.11921/
I know this request goes to to the "Regalia - Enhanced RAGS 2.x Player For The Browser" thread:
https://f95zone.to/threads/regalia-enhanced-rags-2-x-player-for-the-browser.4829/



Still, could someone please convert these games?

I) Slavers Game Chapter IV: Nancy's Hospital Problems [v0.22] [Imp16k4]:
https://f95zone.to/threads/slavers-game-chapter-iv-nancys-hospital-problems-v0-22-imp16k4.13834/

II) Slavers Game [Ch. 1-2 v0.18.03] [Imp16k4]:
https://f95zone.to/threads/slavers-game-ch-1-2-v0-18-03-imp16k4.2520/

III) Miss Adventure [v1.249] [Dollmistress]:
https://f95zone.to/threads/miss-adventure-v1-249-dollmistress.4343/

IV) Kennel K-9 [WIP] [PacifistGames]:
https://f95zone.to/threads/kennel-k-9-wip-pacifistgames.278/

V) Veronika [v0.9.1] [Pacifist03]:
https://f95zone.to/threads/veronika-v0-9-1-pacifist03.1231/

VI) Shield High [v0.11] [Pudding Games]:
https://f95zone.to/threads/shield-high-v0-11-pudding-games.11921/
People liked my post.
My gratitude for You!
And still no answer...