|
Post by zodium on Feb 25, 2015 14:54:27 GMT
Zeblote Renaming mscorlib.dll gives me a whole bunch of other errors when compiling my change to Artillery.Fire (I pressed Skip when it asked me to specify its location), like "The name 'MonoBehavior' does not exist in the current context" or "The type and namespace Vector3 could not be found." I'm not doing anything more complicated than deleting one line before I hit compile. Edit: Can I manually point it at this 2.0.0.0 version somehow, or what?
|
|
|
Post by spaar on Feb 25, 2015 14:59:41 GMT
You need to add a "using UnityEngine" at the top, it's not kept from the original unfortunately.
|
|
|
Post by Zeblote on Feb 25, 2015 15:01:19 GMT
Do it like this to have decompiling working as usual:
1) Start justdecompile 2) Navigate to method you want to edit 3) Rename mscorlib.dll 4) Click "Replace all with code" 5) Enter code and compile 6) Change mscorlib back to original name 7) Click Reflexil>Save and Reload 8) Click back arrow and check that your changes worked
Regarding those compile errors, you have to add UnityEngine to the usings at the top as it doesn't copy those from the original file
Removing the hasFired logic won't do anything, the cannons only have one projectile object and I'm not sure how the Artillery component is activated.
|
|
|
Post by ITR on Feb 25, 2015 15:13:55 GMT
Uh, just in case you forgot what the OP currently looks like: Actually I think I misread his post, I thought it said "or" not "and". Lol, actually, a little after replying I thought I might have written "or" and that you misunderstood that as an non-logical "or", but then I saw I wrote "and" and didn't really consider that you might have misread XD
|
|
|
Post by zodium on Feb 25, 2015 15:15:17 GMT
Hooray, it works. Thanks.
And yeah, I found that out. I'll keep trying.
|
|
|
Post by ITR on Feb 25, 2015 15:35:15 GMT
Telekit seems to have a problem with me downloading JustDecompile, are there any other good decompilers?
|
|
|
Post by Zeblote on Feb 25, 2015 15:41:28 GMT
|
|
|
Post by ITR on Feb 25, 2015 15:49:15 GMT
Thanks, the offline download page of theirs only links to 404s, and all the direct links I found in a forum posts were outdated 404s.
|
|
|
Post by Zeblote on Feb 25, 2015 15:52:28 GMT
|
|
|
Post by ITR on Feb 25, 2015 16:11:00 GMT
Yeah, the free download works, but that gives a download to an installer, which doesn't work for me. When that installer fails it says "try the offline download version" and links to www.telerik.com/offline-trial-download but the decompiler link doesn't work
|
|
|
Post by ITR on Feb 25, 2015 18:26:35 GMT
Do it like this to have decompiling working as usual: 1) Start justdecompile 2) Navigate to method you want to edit 3) Rename mscorlib.dll 4) Click "Replace all with code" 5) Enter code and compile 6) Change mscorlib back to original name 7) Click Reflexil>Save and Reload 8) Click back arrow and check that your changes worked Regarding those compile errors, you have to add UnityEngine to the usings at the top as it doesn't copy those from the original file
Removing the hasFired logic won't do anything, the cannons only have one projectile object and I'm not sure how the Artillery component is activated. Which mscorlib.dll is the one to be renamed? I found one under "Assembly-CSharp>Assembly-CSharp>References" and one under "mscorlib", but neither fixed the "same identity" thing.
|
|
|
Post by spaar on Feb 25, 2015 18:28:11 GMT
Which mscorlib.dll is the one to be renamed? I found one under "Assembly-CSharp>Assembly-CSharp>References" and one under "mscorlib", but neither fixed the "same identity" thing. You need to rename the file "mscorlib.dll" located in Besiege_Data/Managed/ to something else.
|
|
|
Post by ITR on Feb 25, 2015 18:39:21 GMT
oooh, not rename as in using reflexil XD Thanks :3
Somebody should sum this up in the first post.
|
|
|
Post by zodium on Feb 25, 2015 18:51:24 GMT
When the new forums launch, I will summarize this forum and write an OP, but it's pretty much a waste of time to do now.
|
|
|
Post by spaar on Feb 25, 2015 20:41:22 GMT
So, I've (mostly) managed to create a cannon that can shoot multiple shot instead of just one. Any ideas regarding balancing so there is still incentive to use the old one ? The obvious one is to make it a lot heavier, but can you come up with more ? Or is this just completely overpowered anyway ?
|
|