FortressCraft Evolved

FortressCraft Evolved

Powerless Glowsticks
blabla 2018 年 10 月 30 日 上午 3:06
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); } }
最后由 blabla 编辑于; 2018 年 10 月 31 日 上午 5:46
< >
正在显示第 1 - 15 条,共 29 条留言
blabla 2018 年 10 月 31 日 上午 12:16 
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.
最后由 blabla 编辑于; 2018 年 10 月 31 日 上午 2:07
Wariat117  [开发者] 2018 年 10 月 31 日 上午 1:28 
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 2018 年 10 月 31 日 上午 1:33 
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
最后由 blabla 编辑于; 2018 年 10 月 31 日 上午 1:46
blabla 2018 年 10 月 31 日 上午 1:39 
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  [开发者] 2018 年 10 月 31 日 上午 1:51 
引用自 blabla
reading through hours of code.
yeah this part discourages me :D

引用自 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
最后由 Wariat117 编辑于; 2018 年 10 月 31 日 上午 1:55
blabla 2018 年 10 月 31 日 上午 1:57 
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 2018 年 10 月 31 日 上午 1:59 
Ok, if you want, i can publish it. I did not do it under my name because it was your idea.
最后由 blabla 编辑于; 2018 年 10 月 31 日 上午 2:00
blabla 2018 年 10 月 31 日 上午 2:02 
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.
最后由 blabla 编辑于; 2018 年 10 月 31 日 上午 2:03
Wariat117  [开发者] 2018 年 10 月 31 日 上午 2:02 
引用自 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 2018 年 10 月 31 日 上午 2:04 
You can set local to false as well, that does not matter.
blabla 2018 年 10 月 31 日 上午 2:05 
I do not care how we handle it.
最后由 blabla 编辑于; 2018 年 10 月 31 日 上午 2:06
Wariat117  [开发者] 2018 年 10 月 31 日 上午 2:08 
引用自 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 2018 年 10 月 31 日 上午 2:14 
If you also use your GlowStick Item you should set or properly add an icon. Thats very easy.
Wariat117  [开发者] 2018 年 10 月 31 日 上午 2:17 
引用自 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)
最后由 Wariat117 编辑于; 2018 年 10 月 31 日 上午 2:21
blabla 2018 年 10 月 31 日 上午 2:24 
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. ;)
最后由 blabla 编辑于; 2018 年 10 月 31 日 上午 4:17
< >
正在显示第 1 - 15 条,共 29 条留言
每页显示数: 1530 50