Edit RAYRUN.EXE from Rayman Designer to run other program.
Moderators: English moderators, Modding and utilities team
Forum rules
Please keep the forum rules and guidelines in mind when creating or replying to a topic.
Please keep the forum rules and guidelines in mind when creating or replying to a topic.
Edit RAYRUN.EXE from Rayman Designer to run other program.
I am making a simple autorun version of Rayman Designer, but i want to edit the RAYRUN.exe so when i start the autorunner and click on *Rayman*, instead of running Rayman.bat, make it run RayDes.exe -edited DOSBOX i made, but when i enter InstData and edit ubi.ini and ubi.ins and edit the *Rayman.bat* to be *RayDes.exe* it simpley don´t runs, and if i click *Mapper* it opens Mapper, but i want to edit the RAYRUN.exe so it can run other file...
i hate myself
Re: Edit RAYRUN.EXE from Rayman Designer to run other program.
Not a good solution, but just an alternative -
If it's only for your purposes, and you don't care about binding to the specific drive letter, you could create a shortcut with specific command(s) to the exe added into autorun file (if autorun runs .lnk files).
If it's only for your purposes, and you don't care about binding to the specific drive letter, you could create a shortcut with specific command(s) to the exe added into autorun file (if autorun runs .lnk files).
Rayman 2 Soundtrack PSX (HQ CD like - 44kHz FLAC/Mp3) + Revolution - 31 exclusive tracks & others remastered | Rayman 3 HD High Quality Soundtrack (Ubi Remaster) FLAC/ Mp3 | Rayman 2 Graphics mod Reshade | Rayman 2 32 bit color fix | Rayman 3 Reshade | AI uspcaled and remade HD tex mod for PC | for Gamecube | Rayman 2 PC HD Texture Mod AI | Rayman M/Arena AI HD Tex Mod | Rayman 2 Rayman 3 Rayman M Widescreen Patch | Arena Widescreen Patch | Rayman 2 Revolution PCSX2 - get v. 1.4.0 and up for emulation speed up /or this fix | Revolution 60 FPS hack | Tonic Trouble OST 44kHz!
Re: Edit RAYRUN.EXE from Rayman Designer to run other program.
i dont know that commands, but the RAYRUN.exe come with Rayman Designer, so here it is, it opens Mapper when i click mapper but i tried to edit so when i click the rayman option opens RayDes.exe, but the RAYRUN instead opens Rayman.bat.
How i edit that
im leaving the files so maybe someone can help me
How i edit that
im leaving the files so maybe someone can help me
- Attachments
-
- RayRun and the eee file.zip
- (186.43 KiB) Downloaded 51 times
i hate myself
Re: Edit RAYRUN.EXE from Rayman Designer to run other program.
It seems that the name of the program to run when 'Rayman' is clicked is hardcoded in RAYRUN.EXE, offset 0x1C880.
By simply changing the string RAYMAN.BAT at that location to NOTEPAD.EXE I got it to run Notepad. It seems there is an extra NULL terminator there (probably for alignment), which makes the total usable length 11 characters. Since Windows doesn't care about extensions, you can use it to launch any program whose name is no more than 11 characters long, and which is located in the same directory as RAYRUN.EXE or in the PATH (as long as you pad it with null-terminators up to 12 bytes).
TL;DR - Hex-edit RAYRUN.EXE, change the string at 0x1C880 from RAYMAN.BAT to RAYDES.EXE, and it should do what you want.
By simply changing the string RAYMAN.BAT at that location to NOTEPAD.EXE I got it to run Notepad. It seems there is an extra NULL terminator there (probably for alignment), which makes the total usable length 11 characters. Since Windows doesn't care about extensions, you can use it to launch any program whose name is no more than 11 characters long, and which is located in the same directory as RAYRUN.EXE or in the PATH (as long as you pad it with null-terminators up to 12 bytes).
TL;DR - Hex-edit RAYRUN.EXE, change the string at 0x1C880 from RAYMAN.BAT to RAYDES.EXE, and it should do what you want.
My Rayman Write-ups: https://cloakedthargoid.wordpress.com/_rayman/
Re: Edit RAYRUN.EXE from Rayman Designer to run other program.
What exactly is the RAYRUN.EXE in your ZIP? The RAYRUN.EEE appears identical to the RAYRUN.EXE I have, but your RAYRUN.EXE has a different size (355840 bytes) which I don't recognize. 2/67 scanners on VirusTotal detect it as malicious. Where did you get it?
My Rayman Write-ups: https://cloakedthargoid.wordpress.com/_rayman/
Re: Edit RAYRUN.EXE from Rayman Designer to run other program.
maybe it´s larger than your rayrun because i edited the bitmap using resource hacker, i got it from a rayman forever iso in archive.org
i hate myself
Re: Edit RAYRUN.EXE from Rayman Designer to run other program.
Ah, yes indeed! I just repeated your experiment with Resource Hacker. With the modified bitmap, the size becomes 355840 exactly. The following facts are interesting:
1. Resource Hacker preserves the original date so you cannot easily tell the file has been modified.
2. The simple fact that a file is modified with RH makes "Cylance" flag it as 'Unsafe'.
3. It is the bitmap itself that makes Microsoft flag it as Trojan:Win32/Sabsik.FL.B!ml.
This is on VirusTotal's site. Windows Defender itself (whether on Win7 or Win10) does not detect the file as malicious. These heuristics used by AV tools and the false positives they bring with them are a far bigger mystery than anything we've done with Rayman.
My Rayman Write-ups: https://cloakedthargoid.wordpress.com/_rayman/
Re: Edit RAYRUN.EXE from Rayman Designer to run other program.
C´mon, i edited the bitmap with Paint, it would be dumb, anyways i fixed the prob, the rayrun opens rayman.bat, so i edited the bat so it opens my exe i want
i hate myself