[1.2.3] ModLoader renamed methods - QUICK FIX
6 diamonds
-
858Views, 2 today
- Comments
- Favorites
- Flag / Report
Get Embed Code
As of 1.2, ModLoader's methods are all starting with lowercase letter, while they used uppercase before. This may not be a problem with small mods, but I had to develop some automation script for PowerCraft and other large mods.
It is uses pearl to change all ModLoader.[A-Z] to ModLoader.[a-z]
Here it is:
perl -pi -e 's/(ModLoader.)([A-Z]{1})/$1.lc($2)/ge' *.java
note that it was only tested on Linux, but I am sure there is way how to do this on windows, too.
Run this command in a folder with your sources to fix all calls.
Make sure you take a backup copy before, as if you do something wrong, you can lose your hard work (the sources).
-- I hope it will be useful
If you get bored of mods, try my GOMOKU GAME FOR 2 PLAYERS ;)
Additional Details
| Tags: | Tutorial |
More Blogs by MightyPorkView All
2012-08-31 12:46:31
by MightyPork
2012-02-26 04:18:51
by MightyPork
Join us to post comments.
Comments : 7
1 - 7 of 7
1 - 7 of 7










Reply
Delete
mrtopsyt
Level 5
Apprentice Miner
March 12, 2012, 11:19 am
Reply
Delete
MightyPork
Level 89
Elite Modder
March 12, 2012, 10:03 pm
Reply
Delete
TnT-Crew
Level 23
Expert Artist
March 12, 2012, 4:17 am
Reply
Delete
MightyPork
Level 89
Elite Modder
March 12, 2012, 5:34 am
Reply
Delete
TnT-Crew
Level 23
Expert Artist
March 12, 2012, 8:41 am
Reply
Delete
Jack5324
Level 17
Journeyman Cake
March 8, 2012, 9:11 pm
Reply
Delete
Jt9
Level 46
Master Modder
March 8, 2012, 11:37 pm
I use a mac so i might be able to use terminal to use that code to fix up my mod's code