Outward assembly_Csharp

Add topics here with methods, analysis, code snippets, mods etc. for a certain game that normally won't make it in the Tables or Requests sections.
User avatar
iicecube
Expert Cheater
Expert Cheater
Posts: 126
Joined: Thu Sep 28, 2017 5:54 pm
Reputation: 13

Outward assembly_Csharp

Post by iicecube »

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..

[Link]

Emlorp
Cheater
Cheater
Posts: 44
Joined: Tue Apr 18, 2017 12:25 am
Reputation: 2

Re: Outward assembly_Csharp

Post by Emlorp »

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

User avatar
iicecube
Expert Cheater
Expert Cheater
Posts: 126
Joined: Thu Sep 28, 2017 5:54 pm
Reputation: 13

Re: Outward assembly_Csharp

Post by iicecube »

Emlorp wrote:
Mon Apr 01, 2019 5:55 pm
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
Cheater
Cheater
Posts: 44
Joined: Tue Apr 18, 2017 12:25 am
Reputation: 2

Re: Outward assembly_Csharp

Post by Emlorp »

The equipment code for me looks like

Code: Select all

	public float PouchCapacityBonus
	{
		get
		{
			if (this.Stats != null)
			{
				return this.Stats.PouchCapacityBonus + 100f;
			}
			return 0f;
The CharacterEquipment code for me

Code: Select all

	public float GetEquipementPouchBonus()
	{
		return this.m_totalPouchCapacityBonus + 100f;
	}

GreenHouse
Expert Cheater
Expert Cheater
Posts: 852
Joined: Fri Oct 12, 2018 10:25 pm
Reputation: 896

Re: Outward assembly_Csharp

Post by GreenHouse »

You can just do the same with a script. Why edit the assembly?

Emlorp
Cheater
Cheater
Posts: 44
Joined: Tue Apr 18, 2017 12:25 am
Reputation: 2

Re: Outward assembly_Csharp

Post by Emlorp »

GreenHouse wrote:
Mon Apr 01, 2019 8:33 pm
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
Cheater
Cheater
Posts: 44
Joined: Tue Apr 18, 2017 12:25 am
Reputation: 2

Re: Outward assembly_Csharp

Post by Emlorp »

I changed the Unload in WeaponLoadout to

Code: Select all

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

User avatar
iicecube
Expert Cheater
Expert Cheater
Posts: 126
Joined: Thu Sep 28, 2017 5:54 pm
Reputation: 13

Re: Outward assembly_Csharp

Post by iicecube »

GreenHouse wrote:
Mon Apr 01, 2019 8:33 pm
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.
Last edited by iicecube on Mon Apr 01, 2019 9:01 pm, edited 1 time in total.

User avatar
iicecube
Expert Cheater
Expert Cheater
Posts: 126
Joined: Thu Sep 28, 2017 5:54 pm
Reputation: 13

Re: Outward assembly_Csharp

Post by iicecube »

Emlorp wrote:
Mon Apr 01, 2019 8:25 pm
The equipment code for me looks like

Code: Select all

	public float PouchCapacityBonus
	{
		get
		{
			if (this.Stats != null)
			{
				return this.Stats.PouchCapacityBonus + 100f;
			}
			return 0f;
The CharacterEquipment code for me

Code: Select all

	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?
[Link]

Emlorp
Cheater
Cheater
Posts: 44
Joined: Tue Apr 18, 2017 12:25 am
Reputation: 2

Re: Outward assembly_Csharp

Post by Emlorp »

iicecube wrote:
Mon Apr 01, 2019 8:59 pm
Emlorp wrote:
Mon Apr 01, 2019 8:25 pm
The equipment code for me looks like

Code: Select all

	public float PouchCapacityBonus
	{
		get
		{
			if (this.Stats != null)
			{
				return this.Stats.PouchCapacityBonus + 100f;
			}
			return 0f;
The CharacterEquipment code for me

Code: Select all

	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?
[Link]
What are you using to compile it? I used DnSpy and it worked for me out of the box.

User avatar
iicecube
Expert Cheater
Expert Cheater
Posts: 126
Joined: Thu Sep 28, 2017 5:54 pm
Reputation: 13

Re: Outward assembly_Csharp

Post by iicecube »

Emlorp wrote:
Mon Apr 01, 2019 9:08 pm
iicecube wrote:
Mon Apr 01, 2019 8:59 pm
Emlorp wrote:
Mon Apr 01, 2019 8:25 pm
The equipment code for me looks like

Code: Select all

	public float PouchCapacityBonus
	{
		get
		{
			if (this.Stats != null)
			{
				return this.Stats.PouchCapacityBonus + 100f;
			}
			return 0f;
The CharacterEquipment code for me

Code: Select all

	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?
[Link]
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
Cheater
Cheater
Posts: 44
Joined: Tue Apr 18, 2017 12:25 am
Reputation: 2

Re: Outward assembly_Csharp

Post by Emlorp »

dnSpy v6.0.4 (64-bit)

User avatar
iicecube
Expert Cheater
Expert Cheater
Posts: 126
Joined: Thu Sep 28, 2017 5:54 pm
Reputation: 13

Re: Outward assembly_Csharp

Post by iicecube »

Emlorp wrote:
Mon Apr 01, 2019 9:14 pm
dnSpy v6.0.4 (64-bit)
What the higher .NET Framework you using in you?

Emlorp
Cheater
Cheater
Posts: 44
Joined: Tue Apr 18, 2017 12:25 am
Reputation: 2

Re: Outward assembly_Csharp

Post by Emlorp »

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

User avatar
iicecube
Expert Cheater
Expert Cheater
Posts: 126
Joined: Thu Sep 28, 2017 5:54 pm
Reputation: 13

Re: Outward assembly_Csharp

Post by iicecube »

Emlorp wrote:
Mon Apr 01, 2019 9:19 pm
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?

Post Reply

Who is online

Users browsing this forum: No registered users