|
Post by BanDaana on Feb 22, 2015 11:30:38 GMT
I know quite some people have talked about this, but I've found a file that makes extra block angles when you press R (so not only 90 degrees) It's not officially supported, so back up the original file before replacing the file in C:\Program Files (x86)\Steam\steamapps\common\Besiege\Besiege_Data\Managed (at least, that's where the old one is with me). This is for the Steam version. Assembly-UnityScript.dll (305 KB)
|
|
|
Post by Zeblote on Feb 22, 2015 20:06:12 GMT
Yup, you've got that from me or someone who shared it: For humble version: bit.ly/1FfKcfi ( warning: outdated link. for 0.03 only) For steam version: bit.ly/1zZ0HIc (the sha-1 of your file matches this one) Lets you rotate blocks in 22.5 degree steps instead of 90 degree.
|
|
|
Post by zodium on Feb 22, 2015 21:28:59 GMT
All power to Zeblote.
|
|
|
Post by piecake13 on Feb 23, 2015 7:30:55 GMT
Been following all this. I am trying to use it but i get a wierd issue (blocks angle fine but i get this on my screen:
|
|
|
Post by SuburbanSB on Feb 23, 2015 7:35:55 GMT
All the letters in squares? is that what you're referring too piecake13 Because they can be toggled on and off using the button 7 over from the right on the top bar
|
|
|
Post by piecake13 on Feb 23, 2015 8:38:40 GMT
suburbansb, when i click it, it doesnt do anything. with original dll itll show the right keymaps. but with the one that allows 22.5 degrees of rotation from Zeblote, it does this. i might just have to build with this hanging around and switch dlls when i want to record or screenshot.
|
|
|
Post by zodium on Feb 23, 2015 8:46:36 GMT
The file is for 0.03, not 0.04.
|
|
|
Post by piecake13 on Feb 23, 2015 8:54:49 GMT
no way to roll back version cause steam is evil on patch versions. Ima try it with a 0.03 torrented version. If it works many hugs potatoes and choas engines for you Zodium (also i subscribed cause i wanna see what else you are going to make)
|
|
|
Post by BanDaana on Feb 23, 2015 9:25:12 GMT
Hmm, Poop. It stopped working for me too.
|
|
|
Post by zodium on Feb 23, 2015 9:38:50 GMT
Based on what Zeblote told me at one point, if you decompile /Besiege/Managed/Assembly-Unityscript.dll with JustDecompile, you'll find a line in AddPiece that looks something like this (in 0.04): IL_0269: ldfld float32 AddPiece::rotationAmount IL_026e: ldc.i4.s 90 Change that 90 to a 22.5, or whatever. Then do ... something to compile a new DLL, I don't know, compiled languages are scary and weird to me. no way to roll back version cause steam is evil on patch versions. Ima try it with a 0.03 torrented version. If it works many hugs potatoes and choas engines for you Zodium (also i subscribed cause i wanna see what else you are going to make) Thanks. :]
|
|
|
Post by Zeblote on Feb 23, 2015 13:04:24 GMT
Based on what Zeblote told me at one point, if you decompile /Besiege/Managed/Assembly-Unityscript.dll with JustDecompile, you'll find a line in AddPiece that looks something like this (in 0.04): IL_0269: ldfld float32 AddPiece::rotationAmount IL_026e: ldc.i4.s 90 Change that 90 to a 22.5, or whatever. You can't just edit that to 22.5, ldc.i4 loads integers. Look at the instruction after it: IL_0268: ldarg.0 IL_0269: ldfld float32 AddPiece::rotationAmount IL_026e: ldc.i4.s 90 IL_0270: conv.r4 IL_0271: add
It converts the int to a float. (...why?) We have to edit it to just load the float we want: IL_0268: ldarg.0 IL_0269: ldfld float32 AddPiece::rotationAmount IL_026e: ldc.r4 22.5 IL_0273: add
Anyways, updated to v0.4 steam: bit.ly/1zZ0HIchumble: someone give me the original dll so I can edit it, don't have humble version
|
|
|
Post by zodium on Feb 23, 2015 13:27:55 GMT
Awesome.
How do you actually make edits with JustDecompile? I see a save and an inject function in the Reflexil plugin, but I'm dumb-dumbing it pretty bad on the edit function.
edit: oic
|
|
|
Post by spaar on Feb 23, 2015 14:27:50 GMT
You need to open the Reflexil "window" or maybe panel and then click on the function you want to edit. Then you will see the instructions and can edit them, or create new ones, by right-clicking on them. Or, you can right-click on the first one (or maybe on all?) and click "Replace all with code" to just rewrite it in C#. A lot more convenient for more complicated things If you then go Save & Reload in the menu you already found, it will actually write your changes.
|
|
|
Post by Zeblote on Feb 23, 2015 15:02:59 GMT
Or, you can right-click on the first one (or maybe on all?) and click "Replace all with code" to just rewrite it in C#. A lot more convenient for more complicated things So how do people get this to work? Getting this error since forever and there is no way to fix it. Telerik support is completely unhelpful.
|
|
|
Post by spaar on Feb 23, 2015 15:05:58 GMT
Or, you can right-click on the first one (or maybe on all?) and click "Replace all with code" to just rewrite it in C#. A lot more convenient for more complicated things So how do people get this to work? Just rename mscorlib.dll in the Managed folder to something like mscorlib.dllx. It's kinda stupid and annoying, but in my opinion still a lot better than editing the IL code. Oh, and remember to rename the file back, otherwise the game won't launch
|
|