thelink2012 / modloader

Mod Loader for GTA III, Vice City and San Andreas
MIT License
267 stars 25 forks source link

Mod Loader not Merging Melee Weapon Data #90

Open HzanRsxa2959 opened 3 years ago

HzanRsxa2959 commented 3 years ago

https://forum.mixmods.com.br/f286-help/t6147-mod-loader-not-merging-melee-weapon-data

thelink2012 commented 3 years ago

Could you try saving your readme in the CP1252 encoding (same as weapons.dat)?

If that doesn't really work, could you show me hexadecimal representation of the portion of the file with the pound symbol character?

Mod Loader's code is expecting such character to be the hexadecimal value A3, much like R* code for parsing weapons.dat does. Though I am not sure how that works with readmes that can have arbitrary encodings.

On Wed, Mar 10, 2021, 1:54 PM HzanRsxa2959 notifications@github.com wrote:

https://forum.mixmods.com.br/f286-help/t6147-mod-loader-not-merging-melee-weapon-data

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/thelink2012/modloader/issues/90, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNGVTJECOPOY4GFGTKNHRTTC6P2XANCNFSM4Y6N3J4Q .

HzanRsxa2959 commented 3 years ago

Oh wow, that worked!

Here is what I did:

The weapon data lines I used:

£ TESTMELEE MELEE 10.0 1.6 331 -1 0 UNARMED 4 1 null $ TESTGUN INSTANT_HIT 55.0 100.0 357 -1 6 sniper 1 75 0.7 -0.05 0.2 1 300 1.0 1.2 6 17 7 6 17 7 99 A008

Note: I used HxD. The hex representation of the weapon.dat renamed to txt containing the weapon data lines: A3 20 54 45 53 54 4D 45 4C 45 45 09 4D 45 4C 45 45 09 31 30 2E 30 20 20 31 2E 36 09 33 33 31 09 2D 31 09 09 30 09 09 55 4E 41 52 4D 45 44 09 09 34 09 09 09 31 09 09 6E 75 6C 6C 0D 0A 24 20 54 45 53 54 47 55 4E 09 09 49 4E 53 54 41 4E 54 5F 48 49 54 09 35 35 2E 30 20 31 30 30 2E 30 09 33 35 37 09 2D 31 09 09 36 09 73 6E 69 70 65 72 09 09 31 09 20 37 35 09 09 30 2E 37 20 20 2D 30 2E 30 35 20 20 30 2E 32 09 09 31 20 20 33 30 30 09 31 2E 30 09 20 31 2E 32 20 09 20 36 20 31 37 20 20 37 09 20 36 20 31 37 20 20 37 20 20 39 39 09 41 30 30 38

The hex representation of the a new txt file containing the weapon data lines without encoding: C2 A3 20 54 45 53 54 4D 45 4C 45 45 09 4D 45 4C 45 45 09 31 30 2E 30 20 20 31 2E 36 09 33 33 31 09 2D 31 09 09 30 09 09 55 4E 41 52 4D 45 44 09 09 34 09 09 09 31 09 09 6E 75 6C 6C 0D 0A 24 20 54 45 53 54 47 55 4E 09 09 49 4E 53 54 41 4E 54 5F 48 49 54 09 35 35 2E 30 20 31 30 30 2E 30 09 33 35 37 09 2D 31 09 09 36 09 73 6E 69 70 65 72 09 09 31 09 20 37 35 09 09 30 2E 37 20 20 2D 30 2E 30 35 20 20 30 2E 32 09 09 31 20 20 33 30 30 09 31 2E 30 09 20 31 2E 32 20 09 20 36 20 31 37 20 20 37 09 20 36 20 31 37 20 20 37 20 20 39 39 09 41 30 30 38

The hex representation of the a new txt file containing the weapon data lines with Windows-1252 encoding: C2 A3 20 54 45 53 54 4D 45 4C 45 45 09 4D 45 4C 45 45 09 31 30 2E 30 20 20 31 2E 36 09 33 33 31 09 2D 31 09 09 30 09 09 55 4E 41 52 4D 45 44 09 09 34 09 09 09 31 09 09 6E 75 6C 6C 0D 0A 24 20 54 45 53 54 47 55 4E 09 09 49 4E 53 54 41 4E 54 5F 48 49 54 09 35 35 2E 30 20 31 30 30 2E 30 09 33 35 37 09 2D 31 09 09 36 09 73 6E 69 70 65 72 09 09 31 09 20 37 35 09 09 30 2E 37 20 20 2D 30 2E 30 35 20 20 30 2E 32 09 09 31 20 20 33 30 30 09 31 2E 30 09 20 31 2E 32 20 09 20 36 20 31 37 20 20 37 09 20 36 20 31 37 20 20 37 20 20 39 39 09 41 30 30 38

HzanRsxa2959 commented 3 years ago

@thelink2012 Actually, IDK if you wanna close this issue; it's up to you. Is the above method a solution, or a workaround?

thelink2012 commented 3 years ago

Workaround. You can leave it open.

On Fri, Mar 12, 2021, 3:36 AM HzanRsxa2959 @.***> wrote:

Reopened #90 https://github.com/thelink2012/modloader/issues/90.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/thelink2012/modloader/issues/90#event-4448995210, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNGVTLB62HWMX2PHFCG3MLTDGY5RANCNFSM4Y6N3J4Q .