Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mod Loader not Merging Melee Weapon Data #90

Open
HzanRsxa2959 opened this issue Mar 10, 2021 · 4 comments
Open

Mod Loader not Merging Melee Weapon Data #90

HzanRsxa2959 opened this issue Mar 10, 2021 · 4 comments

Comments

@HzanRsxa2959
Copy link

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

@thelink2012
Copy link
Owner

thelink2012 commented Mar 10, 2021 via email

@HzanRsxa2959
Copy link
Author

Oh wow, that worked!

Here is what I did:

  • I created a txt file and tried changing its encoding using Notepad++ (Encoding -> Character Sets -> Western European -> Windows-1252), but that really didn't work.
  • So, I copied the original weapon.dat, changed its extension to txt, and then put the weapon data lines in there, and it worked.

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
Copy link
Author

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

@HzanRsxa2959 HzanRsxa2959 reopened this Mar 12, 2021
@thelink2012
Copy link
Owner

thelink2012 commented Mar 12, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants