FortressCraft Evolved

FortressCraft Evolved

Powerless Glowsticks
blabla 30 Oct, 2018 @ 3:06am
Want to do it without items?
public void Update() { if (Input.GetKeyDown(KeyCode.T) && UIManager.AllowInteracting && WorldScript.instance?.localPlayerInstance != null) { Vector3 lPos = WorldScript.instance.localPlayerInstance.mPosition + Vector3.up; ARTHERPetSurvival.GlowSticks++; OldCollectableManager.instance.ThrowGlowstick(lPos, WorldScript.instance.localPlayerInstance.mForwards, true); } }
Last edited by blabla; 31 Oct, 2018 @ 5:46am
< >
Showing 1-15 of 29 comments
blabla 31 Oct, 2018 @ 12:16am 
I built something for you.
In mod.config you can set the key to throw.
Except other key and no energy, there is no difference to the original.
Last edited by blabla; 31 Oct, 2018 @ 2:07am
Wariat117  [developer] 31 Oct, 2018 @ 1:28am 
If I set
<KeyCode>G</KeyCode>
Then it will replace normal glowstick or game will throw 2 glowsticks? (or you didn't test it yet)


Also I have been discouraged from trying plugins (especially since google has X amount of programs and first one "dnspy" doesn't work quite good)
Seeing the code... It discourages me even further from trying it lol
blabla 31 Oct, 2018 @ 1:33am 
If you make KeyCode to G you throw 2, the normal and the modded.
That's why I put it on T standard. But you and every player feel free to use your favorite.
Every sting in left column is useable:
https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.keys?redirectedfrom=MSDN&view=netframework-4.7.2#felder
Last edited by blabla; 31 Oct, 2018 @ 1:46am
blabla 31 Oct, 2018 @ 1:39am 
It's already a bit advanced, but still pretty simple. But you have to be familiar with FCE, reading through hours of code.
dnspy is a good program (very powerful), but to look in the code, ilspy is quite enough.
Wariat117  [developer] 31 Oct, 2018 @ 1:51am 
Originally posted by blabla:
reading through hours of code.
yeah this part discourages me :D

Originally posted by blabla:
dnspy is a good program (very powerful), but to look in the code, ilspy is quite enough.
when I tried to see code I have ended up with a lot of random strings of letters and number and code was rarely seen there ;-;
I have just guessed that something is broken then



Will it be problem If I just combine my mod with your plugin?
I know people who totally dislike going into files to configure something (change <KeyCode>T</KeyCode> to something they want) even if you fully explain how to do this, those guys could just craft glowsticks and throw them.
It couldn't be local one then. (If I recall correctly being local allows mod to be used even if it's not on the server's mod list)


edit:
If you want it local then it's no problem, I would have my mod with only crafting and you could upload the plugin one as another mod.

It would be funny if it had name like "Powerless Glowsticks+" or "Powerless Glowsticks Evolved"
People could just choose which mod they prefer during subscription
Last edited by Wariat117; 31 Oct, 2018 @ 1:55am
blabla 31 Oct, 2018 @ 1:57am 
The mod is complete. You can customize the modconfig to your liking and choose a keycode if you do not want T.
The players do not have to change the KeyCode, if they dont want. Then you have decided for them.
blabla 31 Oct, 2018 @ 1:59am 
Ok, if you want, i can publish it. I did not do it under my name because it was your idea.
Last edited by blabla; 31 Oct, 2018 @ 2:00am
blabla 31 Oct, 2018 @ 2:02am 
This mod is set local because it does not need a server function.
By the way, yours either.
The config setting can then be handled as you like.
Last edited by blabla; 31 Oct, 2018 @ 2:03am
Wariat117  [developer] 31 Oct, 2018 @ 2:02am 
Originally posted by blabla:
Ok, if you want. I did not do it under my name because it was your idea.
I see no problem in it.
Since I have noticed that plugin mod can work as local only mod I think that it's even better to keep them as 2 different mods.

The .xml mods would tell you error if you try to make them local so during combining them I would have to make it false ;d
blabla 31 Oct, 2018 @ 2:04am 
You can set local to false as well, that does not matter.
blabla 31 Oct, 2018 @ 2:05am 
I do not care how we handle it.
Last edited by blabla; 31 Oct, 2018 @ 2:06am
Wariat117  [developer] 31 Oct, 2018 @ 2:08am 
Originally posted by blabla:
You can set local to false as well, that does not matter.
oki, if it doesn't matter then I will combine them and upload soon
blabla 31 Oct, 2018 @ 2:14am 
If you also use your GlowStick Item you should set or properly add an icon. Thats very easy.
Wariat117  [developer] 31 Oct, 2018 @ 2:17am 
Originally posted by blabla:
If you also use your GlowStick Item you should set or properly add an icon. Thats very easy.
According to .pdf icons aren't supported if I recall correctly

Those glowsticks exist in vanilla, mod just allows to craft them so I didn't even try to mess with it.
According to files it uses "glow stick" icon but dev didn't create this one probably. (another thing with missing icon just like cluster missiles)
Last edited by Wariat117; 31 Oct, 2018 @ 2:21am
blabla 31 Oct, 2018 @ 2:24am 
Use a png, i used for other mods 128x128, give it a name "wariat117.PowerlessGlowsticks.png", and add it to a Folder named "BlockPreview" in the Folder "1" so "\wariat117.PowerlessGlowsticks\1\BlockPreview\wariat117.PowerlessGlowsticks.png" and in the Item XML add "wariat117.PowerlessGlowsticks" as icon.

And a icon is fastly found...

Anyway, it's better than the NoIcon icon. ;)
Last edited by blabla; 31 Oct, 2018 @ 4:17am
< >
Showing 1-15 of 29 comments
Per page: 1530 50