Outward assembly_Csharp

iicecube

iicecube

Expert Cheater
Joined
Sep 28, 2017
Messages
120
Can someone help me figure out this which line does the bag/pouch been edited with 500 weight in it?
Cause i wanna edit it more of it but cant figure out where that line is..

http://s000.tinyupload.com/index.php?file_id=78856303755601970947
 
Emlorp

Emlorp

Cheater
Joined
Apr 18, 2017
Messages
43
Im not sure EXACTLY what happened but I did edit 2 locations in the assembly and managed to boost the pocket carry weight to 810 even though i only used a +100 integer in 2 locations to test with
These are the 2 areas I edited
CharacterEquipment Line 585
Equipement Line 445
 
iicecube

iicecube

Expert Cheater
Joined
Sep 28, 2017
Messages
120
Emlorp said:
Im not sure EXACTLY what happened but I did edit 2 locations in the assembly and managed to boost the pocket carry weight to 810 even though i only used a +100 integer in 2 locations to test with
These are the 2 areas I edited
CharacterEquipment Line 585
Equipement Line 445
I still dont get you, those line are both bonus pouch and and total cap on pouch as you mean?
Can you shown me the edited code you did?
 
Emlorp

Emlorp

Cheater
Joined
Apr 18, 2017
Messages
43
The equipment code for me looks like
Code:
	public float PouchCapacityBonus
	{
		get
		{
			if (this.Stats != null)
			{
				return this.Stats.PouchCapacityBonus + 100f;
			}
			return 0f;
The CharacterEquipment code for me
Code:
	public float GetEquipementPouchBonus()
	{
		return this.m_totalPouchCapacityBonus + 100f;
	}
 
GreenHouse

GreenHouse

Expert Cheater
Table Maker
Joined
Oct 12, 2018
Messages
454
You can just do the same with a script. Why edit the assembly?
 
Emlorp

Emlorp

Cheater
Joined
Apr 18, 2017
Messages
43
GreenHouse said:
You can just do the same with a script. Why edit the assembly?
honestly skimming through the assembly and seeing stuff is more readable to me to alter... i dont know much on scripting or anything thus I have no idea how 100f ended up adding 800 carryweight
AAAND... i just accidently made unlimited mag for guns
 
Emlorp

Emlorp

Cheater
Joined
Apr 18, 2017
Messages
43
I changed the Unload in WeaponLoadout to
Code:
public virtual void Unload()
	{
		this.m_remainingShots = 2;
		this.PutBackVisuals();
		this.m_loadedVisual = null;
		this.m_loadedItemID = -1;
		this.m_pendingLoading = false;
		this.m_projectileImbuedEffects.Clear();
		this.m_imbuedFXs.Clear();
		base.SetHasChanged();
so instead of remaining shots =0 and causing a reload once a bullet is loaded it automatically gets 2 shots once empty
 
iicecube

iicecube

Expert Cheater
Joined
Sep 28, 2017
Messages
120
GreenHouse said:
You can just do the same with a script. Why edit the assembly?
Scripting in CE need more time then just go in assembly and add in some int/float to work which i find it like more understandable to me.
 
iicecube

iicecube

Expert Cheater
Joined
Sep 28, 2017
Messages
120
Emlorp said:
The equipment code for me looks like
Code:
	public float PouchCapacityBonus
	{
		get
		{
			if (this.Stats != null)
			{
				return this.Stats.PouchCapacityBonus + 100f;
			}
			return 0f;
The CharacterEquipment code for me
Code:
	public float GetEquipementPouchBonus()
	{
		return this.m_totalPouchCapacityBonus + 100f;
	}
This is what i always getting when compile, did you do something else to get it compile?
 
Emlorp

Emlorp

Cheater
Joined
Apr 18, 2017
Messages
43
iicecube said:
Emlorp said:
The equipment code for me looks like
Code:
	public float PouchCapacityBonus
	{
		get
		{
			if (this.Stats != null)
			{
				return this.Stats.PouchCapacityBonus + 100f;
			}
			return 0f;
The CharacterEquipment code for me
Code:
	public float GetEquipementPouchBonus()
	{
		return this.m_totalPouchCapacityBonus + 100f;
	}
This is what i always getting when compile, did you do something else to get it compile?
What are you using to compile it? I used DnSpy and it worked for me out of the box.
 
iicecube

iicecube

Expert Cheater
Joined
Sep 28, 2017
Messages
120
Emlorp said:
iicecube said:
Emlorp said:
The equipment code for me looks like
Code:
	public float PouchCapacityBonus
	{
		get
		{
			if (this.Stats != null)
			{
				return this.Stats.PouchCapacityBonus + 100f;
			}
			return 0f;
The CharacterEquipment code for me
Code:
	public float GetEquipementPouchBonus()
	{
		return this.m_totalPouchCapacityBonus + 100f;
	}
This is what i always getting when compile, did you do something else to get it compile?
What are you using to compile it? I used DnSpy and it worked for me out of the box.
What version dnspy you using? I feel that cause the problem as i using 6.04
 
Emlorp

Emlorp

Cheater
Joined
Apr 18, 2017
Messages
43
dnSpy v6.0.4 (64-bit)
 
iicecube

iicecube

Expert Cheater
Joined
Sep 28, 2017
Messages
120
Emlorp said:
dnSpy v6.0.4 (64-bit)
What the higher .NET Framework you using in you?
 
Emlorp

Emlorp

Cheater
Joined
Apr 18, 2017
Messages
43
looking through regedit version is 4.7.03190
also have 3.5.30729.4926 (3.5) and 3.0.30729.4926 (3.0) apparently installed
 
iicecube

iicecube

Expert Cheater
Joined
Sep 28, 2017
Messages
120
Emlorp said:
looking through regedit version is 4.7.03190
also have 3.5.30729.4926 (3.5) and 3.0.30729.4926 (3.0) apparently installed
I wonder you in u using win10 or win7?
 
Top