Page 2 of 5

Re: Star Wars Jedi: Fallen Order | Lightsaber Color Changer

Posted: Sun Nov 24, 2019 9:16 pm
by Deskaar
ilcrack wrote:
Sun Nov 24, 2019 8:48 pm
CheatingMuppet wrote:
Sun Nov 24, 2019 4:04 am
EDIT 2: Updated the script, should be working now & tons more stuff. Thanks to Marcus101RR for helping with debugging.

There are 2 parts of the lightsaber itself, 01 and 02. You'll have to figure out which one is right for you (both if dual-wielding or dual-blading).
For now this is a script only for advanced users that know what they are doing.

EDIT 3: I've added a preset for the red lightsaber. Improve the values if you like.
I'm not sure if this is affecting everybody or just me, or if you've run into it yourself (I'm using a version before you added the red pre-set), but I've noticed the 01 and 02 variables aren't quite correct when I started editing. It detected the values fine, and they can be edited, that part works, but some of them are swapped between 01 and 02.

I'm not sure if I am conveying this clearly, so I will elaborate.

For Lightsaber01:
Primary Color(01)
Primary Alpha(01)
Primary Glow (affects 02)
Pulse Ring Color (01)
Pulse Ring Alpha (01, I think)
PointLight (affects 02)
PointLight_Flashlight (affects 02)

And vice-versa for Lighsaber02.
I think you’re right

Re: Star Wars Jedi: Fallen Order [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Posted: Sun Nov 24, 2019 9:30 pm
by bobbls

Code: Select all

{$LUA}
if syntaxcheck then return end

[ENABLE]

r = 0.0
g = 0.4
b = 0.8
function rgbToHex(rgb)
	local hexadecimal = '0X'

	for key, value in pairs(rgb) do
		local hex = ''

		while(value > 0)do
			local index = math.fmod(value, 16) + 1
			value = math.floor(value / 16)
			hex = string.sub('0123456789ABCDEF', index, index) .. hex
		end

		if(string.len(hex) == 0)then
			hex = '00'

		elseif(string.len(hex) == 1)then
			hex = '0' .. hex
		end

		hexadecimal = hexadecimal .. hex
	end

	return hexadecimal
end

local function randomColor(Sender)
  if r < 1 then
   r = r + 0.05
   else
   r = 0.0
  end
  if g < 1 then
   g = g + 0.05
   else
   g = 0.0
  end
  if b < 1 then
   b = b + 0.05
   else
   b = 0.0
  end


  writeFloat(muppetBase1R, r)
  writeFloat(muppetBase1G, g)
  writeFloat(muppetBase1B, b)

  writeFloat(muppetBase2R, r)
  writeFloat(muppetBase2G, g)
  writeFloat(muppetBase2B, b)

  writeFloat(muppetBase3R, r)
  writeFloat(muppetBase3G, g)
  writeFloat(muppetBase3B, b)

  writeFloat(muppetBase4R, r)
  writeFloat(muppetBase4G, g)
  writeFloat(muppetBase4B, b)

  writeFloat(muppetBase5R, r)
  writeFloat(muppetBase5G, g)
  writeFloat(muppetBase5B, b)

  writeFloat(muppetBase6R, r)
  writeFloat(muppetBase6G, g)
  writeFloat(muppetBase6B, b)

  writeFloat(muppetBase7R, r)
  writeFloat(muppetBase7G, g)
  writeFloat(muppetBase7B, b)

  writeFloat(muppetBase8R, r)
  writeFloat(muppetBase8G, g)
  writeFloat(muppetBase8B, b)

  writeFloat(muppetSaber1GlowR, r)
  writeFloat(muppetSaber1GlowG, g)
  writeFloat(muppetSaber1GlowB, b)
  writeFloat(muppetSaber1GlowR, r)
  writeFloat(muppetSaber1GlowG, g)
  writeFloat(muppetSaber1GlowB, b)

  rgb = {math.floor(r*255),math.floor(g*255),math.floor(b*255)}
  hex = rgbToHex(rgb)

  writeInteger(muppetPL1Color, hex)
  writeInteger(muppetPL2Color, hex)

  writeFloat(muppetPL1Intensity, 9000)
  writeFloat(muppetPL2Intensity, 9000)
end


t=createTimer(Sender) --create timer 't',owner
timer_setInterval(t, 100) --timer,milliseconds
timer_onTimer(t,randomColor) --timer,function
timer_setEnabled(t,true) --timer,boolean

randomColor()

[DISABLE]
t.Enabled = false
t.Destroy()
Wrote an awful script using the table marcus wrote, iterates through colors and converts the rgb into hex for the pointlight automatically. Meant to be a rainbow saber of sorts but an actual color blending method would go a long way. Sadly dont think the point light updates until you redraw the sword so it looks a little janky. Only useful thing is the rgb to hex function i lifted off a random forum. If anyone could direct me to how to read user input in anyway shape or form it'd really aide in making things a bit more user friendly. wrote a function to take hex and convert it but as of now I can't read anything to actually pass to it

Re: Star Wars Jedi: Fallen Order | Lightsaber Color Changer

Posted: Sun Nov 24, 2019 10:15 pm
by IcyPurpose99
Deskaar wrote:
Sun Nov 24, 2019 7:02 pm
Marcus101RR wrote:
Sun Nov 24, 2019 6:42 pm
Deskaar wrote:
Sun Nov 24, 2019 6:04 pm


Mostly figured the script out, only thing that stumps me is how to change the colour of the light cast by the blade? For example I’ve changed my blade colour from green to yellow, everything is perfect except there’s still a green light cast off the blade onto objects and such...
You will need to change the pointlight/flashlight of the saber, its included in the script.
Okay but under the pointlight option there isn’t the same colour value thing as there is for the other options, sorry if I’m being thick headed but what do I have to tweak here to get a colour change?
All primary color codes of the saber is Floats, each its own address, the pointlights are HEX codes, similar to photoshop.

Official Red Color Codes from Game:
Primary Color
0.6499999762

Primary Alpha
0.8069519997
0.08021999896
0.08021999896

Primary Glow
0.6499999762

Ring Pulse Color
0.6499999762

Ring Pulse Alpha
0.8069519997
0.08021999896
0.08021999896

LightColor Pointlight
00C14C4C

Flashlight
00DC9999

Re: Star Wars Jedi: Fallen Order | Lightsaber Color Changer

Posted: Sun Nov 24, 2019 11:30 pm
by CheatingMuppet
duducasarotto wrote:
Sun Nov 24, 2019 4:13 pm
can I put your table on nexus with a link that lead here if I can or if I cant to a description link that lead here and explaining how to use it to the people that dont know how
I talked with Marcus and we both agree that it is fine if you put a link on fearlessrevolution to my reply on this thread (the link below) but we don't want you to upload the cheat table.
viewtopic.php?f=4&t=10863&start=150#p112891
ilcrack wrote:
Sun Nov 24, 2019 8:48 pm
I'm not sure if this is affecting everybody or just me, or if you've run into it yourself (I'm using a version before you added the red pre-set), but I've noticed the 01 and 02 variables aren't quite correct when I started editing. It detected the values fine, and they can be edited, that part works, but some of them are swapped between 01 and 02.

I'm not sure if I am conveying this clearly, so I will elaborate.

For Lightsaber01:
Primary Color(01)
Primary Alpha(01)
Primary Glow (affects 02)
Pulse Ring Color (01)
Pulse Ring Alpha (01, I think)
PointLight (affects 02)
PointLight_Flashlight (affects 02)

And vice-versa for Lighsaber02.
Yes I've noticed this too. This seems to be an inconsistent behavior, sometimes I have that problem but sometimes I don't and when I do have that problem it isn't always in the order that you've said. I'm not sure it's even worth fixing.

Re: Star Wars Jedi: Fallen Order | Lightsaber Color Changer

Posted: Mon Nov 25, 2019 1:02 am
by duducasarotto
CheatingMuppet wrote:
Sun Nov 24, 2019 11:30 pm
duducasarotto wrote:
Sun Nov 24, 2019 4:13 pm
can I put your table on nexus with a link that lead here if I can or if I cant to a description link that lead here and explaining how to use it to the people that dont know how
I talked with Marcus and we both agree that it is fine if you put a link on fearlessrevolution to my reply on this thread (the link below) but we don't want you to upload the cheat table.
viewtopic.php?f=4&t=10863&start=150#p112891
ilcrack wrote:
Sun Nov 24, 2019 8:48 pm
I'm not sure if this is affecting everybody or just me, or if you've run into it yourself (I'm using a version before you added the red pre-set), but I've noticed the 01 and 02 variables aren't quite correct when I started editing. It detected the values fine, and they can be edited, that part works, but some of them are swapped between 01 and 02.

I'm not sure if I am conveying this clearly, so I will elaborate.

For Lightsaber01:
Primary Color(01)
Primary Alpha(01)
Primary Glow (affects 02)
Pulse Ring Color (01)
Pulse Ring Alpha (01, I think)
PointLight (affects 02)
PointLight_Flashlight (affects 02)

And vice-versa for Lighsaber02.
Yes I've noticed this too. This seems to be an inconsistent behavior, sometimes I have that problem but sometimes I don't and when I do have that problem it isn't always in the order that you've said. I'm not sure it's even worth fixing.
ok I will link this thread and teach how to use it to people that dont understand it and If I cant do that I will not but thanks

Re: Star Wars Jedi: Fallen Order [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Posted: Mon Nov 25, 2019 3:07 am
by CheatingMuppet
I've updated the lightsaber rgb script. White & better green lightsaber presets are now available, tweaked the red saber (now sith saber) and also fixed a bug.

Available here: viewtopic.php?f=4&t=10863&start=150#p112891

Re: Star Wars Jedi: Fallen Order [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Posted: Mon Nov 25, 2019 4:10 am
by Mitsunari
CheatingMuppet wrote:
Mon Nov 25, 2019 3:07 am
I've updated the lightsaber rgb script. White & better green lightsaber presets are now available, tweaked the red saber (now sith saber) and also fixed a bug.

Available here: viewtopic.php?f=4&t=10863&start=150#p112891
Any reason why my game just randomly crashes and the presets don't seem to work?

Re: Star Wars Jedi: Fallen Order [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Posted: Mon Nov 25, 2019 4:43 am
by CheatingMuppet
Mitsunari wrote:
Mon Nov 25, 2019 4:10 am
CheatingMuppet wrote:
Mon Nov 25, 2019 3:07 am
I've updated the lightsaber rgb script. White & better green lightsaber presets are now available, tweaked the red saber (now sith saber) and also fixed a bug.

Available here: viewtopic.php?f=4&t=10863&start=150#p112891
Any reason why my game just randomly crashes and the presets don't seem to work?
Follow the instructions.
Do not activate any of the scripts while in any menu, and only activate while you are ingame. Turn the scripts off after you've activated the preset and finished modifying your saber.

Re: Star Wars Jedi: Fallen Order [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Posted: Mon Nov 25, 2019 4:56 am
by senseirain
Help! Why is it Like this? xDD [Link]

Re: Star Wars Jedi: Fallen Order [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Posted: Mon Nov 25, 2019 5:02 am
by CheatingMuppet
senseirain wrote:
Mon Nov 25, 2019 4:56 am
Help! Why is it Like this? xDD [Link]
You've entered values that are too high.
All of the float values are suppose to be between 0 and 1 (e.g. 0.02, 0.1,0.2, etc)

Re: Star Wars Jedi: Fallen Order [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Posted: Mon Nov 25, 2019 5:03 am
by Mitsunari
CheatingMuppet wrote:
Mon Nov 25, 2019 4:43 am
Mitsunari wrote:
Mon Nov 25, 2019 4:10 am
CheatingMuppet wrote:
Mon Nov 25, 2019 3:07 am
I've updated the lightsaber rgb script. White & better green lightsaber presets are now available, tweaked the red saber (now sith saber) and also fixed a bug.

Available here: viewtopic.php?f=4&t=10863&start=150#p112891
Any reason why my game just randomly crashes and the presets don't seem to work?
Follow the instructions.
Do not activate any of the scripts while in any menu, and only activate while you are ingame. Turn the scripts off after you've activated the preset and finished modifying your saber.
I appreciate it! Is there anyway to use the noclip at the moment or no?

Re: Star Wars Jedi: Fallen Order [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Posted: Mon Nov 25, 2019 5:22 am
by defiant
official yellow color codes from game
add them going down starting from the top.
ill add the other official colors except orange...i dont have the dlc...if anyone has id love to see it.
thanks to CheatingMuppet for this.../giving back to the community

yellow
0.390625
0.3349840045
0.06306999922

0.545724988
0.4452010095
0.05448000133

0.390625
0.3349840045
0.06306999922

0.390625
0.3349840045
0.06306999922

0.545724988
0.4452010095
0.05448000133

00928858
2200
3.141592741
0.200000003

00C1BBA0
16000
30000
3.141592741
0.200000003

Re: Star Wars Jedi: Fallen Order [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Posted: Mon Nov 25, 2019 5:39 am
by defiant
cyan
0.1207140014
0.3953799903
0.4635420144

0.1746470034
0.5209959745
0.7230550051

0.1207140014
0.3953799903
0.4635420144

0.1207140014
0.3953799903
0.4635420144

0.1746470034
0.5209959745
0.7230550051

0062939F
2200
3.141592741
0.200000003

00A5C2C9
16000
30000
3.141592741
0.200000003

Re: Star Wars Jedi: Fallen Order [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Posted: Mon Nov 25, 2019 5:44 am
by defiant
purple
0.2923670113
0.01999999955
1

0.4125429988
0.04970699921
1

0.2923670113
0.01999999955
1

0.2923670113
0.01999999955
1

0.4125429988
0.04970699921
1

008150FF
2200
3.141592741
0.200000003

00B79BFF
16000
30000
3.141592741
0.200000003

Re: Star Wars Jedi: Fallen Order [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Posted: Mon Nov 25, 2019 5:49 am
by defiant
magenta
0.6510419846
0.1655469984
0.4975880086

0.7304610014
0.2232279927
0.6866859794

0.6510419846
0.1655469984
0.4975880086

0.6510419846
0.1655469984
0.4975880086

0.7304610014
0.2232279927
0.6866859794

00C16AA5
2200
3.141592741
0.200000003

00DCAACC
16000
30000
3.141592741
0.200000003