You are not logged in.

IC2 Experimental builds (jenkins):
v2.0/2.1/2.2 / 2.3 / 2.5 / 2.6 (For Minecraft 1.6.4/1.7.2/1.7.10 / 1.8.9 / 1.9.4 / 1.10)
IndustrialCraft² recent version: v1.117! (For Minecraft 1.5.2 → topic)

Dear visitor, welcome to IC² Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Sinnaj63

Retired Shitposter|Globalist Conspiracy

  • "Sinnaj63" is male
  • Afghanistan Albania Algeria American Samoa Andorra Angola Anguilla Antigua and Barbuda Argentina Armenia Aruba Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados Belarus Belgium Belize Benin Bermuda Bhutan Bolivia, Plurinational State of Bosnia and Herzegovina Botswana Bouvet Island Brazil British Indian Ocean Territory Brunei Darussalam Bulgaria Burkina Faso Burundi Cambodia Cameroon Canada Cape Verde Cayman Islands Central African Republic Chad Chile China Christmas Island Cocos (Keeling) Islands Colombia Comoros Congo Congo, the Democratic Republic of the Cook Islands Costa Rica Croatia Cuba Cyprus Czech Republic Côte d'Ivoire Denmark Djibouti Dominica Dominican Republic Ecuador Egypt El Salvador Equatorial Guinea Eritrea Estonia Ethiopia Falkland Islands (Malvinas) Faroe Islands Fiji Finland France French Guiana French Polynesia French Southern Territories Gabon Gambia Georgia Germany Ghana Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala Guinea Guinea-Bissau Guyana Haiti Heard Island and McDonald Islands Holy See (Vatican City State) Honduras Hong Kong Hungary Iceland India Indonesia Iran, Islamic Republic of Iraq Ireland Israel Italy Jamaica Japan Jordan Kazakhstan Kenya Kiribati Korea, Democratic People's Republic of Korea, Republic of Kuwait Kyrgyzstan Lao People's Democratic Republic Latvia Lebanon Lesotho Liberia Libyan Arab Jamahiriya Liechtenstein Lithuania Luxembourg Macao Macedonia, the former Yugoslav Republic of Madagascar Malawi Malaysia Maldives Mali Malta Marshall Islands Martinique Mauritania Mauritius Mayotte Mexico Micronesia, Federated States of Moldova, Republic of Monaco Mongolia Montenegro Montserrat Morocco Mozambique Myanmar Namibia Nauru Nepal Netherlands Netherlands Antilles New Caledonia New Zealand Nicaragua Niger Nigeria Niue Norfolk Island Northern Mariana Islands Norway Oman Pakistan Palau Palestinian Territory, Occupied Panama Papua New Guinea Paraguay Peru Philippines Pitcairn Poland Portugal Puerto Rico Qatar Romania Russian Federation Rwanda Réunion Saint Helena Saint Kitts and Nevis Saint Lucia Saint Pierre and Miquelon Saint Vincent and the Grenadines Samoa San Marino Sao Tome and Principe Saudi Arabia Senegal Serbia Seychelles Sierra Leone Singapore Slovakia Slovenia Solomon Islands Somalia South Africa South Georgia and the South Sandwich Islands Spain Sri Lanka Sudan Suriname Svalbard and Jan Mayen Swaziland Sweden Switzerland Syrian Arab Republic Taiwan, Province of China Tajikistan Tanzania, United Republic of Thailand Timor-Leste Togo Tokelau Tonga Trinidad and Tobago Tunisia Turkey Turkmenistan Turks and Caicos Islands Tuvalu Uganda Ukraine United Arab Emirates United Kingdom United States United States Minor Outlying Islands Uruguay Uzbekistan Vanuatu Venezuela, Bolivarian Republic of Viet Nam Virgin Islands, British Virgin Islands, U.S. Wallis and Futuna Western Sahara Yemen Zambia Zimbabwe Åland Islands
  • Send private message

341

Thursday, March 28th 2013, 8:09pm

@bove ICBM's Nuke ignores every armor. I think its code makes you get 9001 hearts damage, so you will die or your armor will get drained and you die.

SirusKing

Nuclear Demolitionist

Posts: 3,585

Location: Selling IndustrialWow: You'll be saying Wow everytime you use this mod!

  • Send private message

342

Friday, March 29th 2013, 10:06pm

The Projectile from the Railgun doesnt hit mobs if the mob is behind a transparent item (signs, Tall Grass ect)
GT Textures: 281/ ∞ (0.0%) Complete. Screw this.
Sirus is the greatest person on the planet ever and I adore him and his work in every way possible. ~ GregoriusT 2014
Greatest thing on the internet.

343

Saturday, March 30th 2013, 1:14am

Sound effects

If I record some sound effects for the mod, is there any chance they could get put in? It would be a lot more satisfying to have one when you install a module for instance. Maybe a special walk sound if you weigh too much, though that is probably non-trivial.

Sinnaj63

Retired Shitposter|Globalist Conspiracy

  • "Sinnaj63" is male
  • Afghanistan Albania Algeria American Samoa Andorra Angola Anguilla Antigua and Barbuda Argentina Armenia Aruba Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados Belarus Belgium Belize Benin Bermuda Bhutan Bolivia, Plurinational State of Bosnia and Herzegovina Botswana Bouvet Island Brazil British Indian Ocean Territory Brunei Darussalam Bulgaria Burkina Faso Burundi Cambodia Cameroon Canada Cape Verde Cayman Islands Central African Republic Chad Chile China Christmas Island Cocos (Keeling) Islands Colombia Comoros Congo Congo, the Democratic Republic of the Cook Islands Costa Rica Croatia Cuba Cyprus Czech Republic Côte d'Ivoire Denmark Djibouti Dominica Dominican Republic Ecuador Egypt El Salvador Equatorial Guinea Eritrea Estonia Ethiopia Falkland Islands (Malvinas) Faroe Islands Fiji Finland France French Guiana French Polynesia French Southern Territories Gabon Gambia Georgia Germany Ghana Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala Guinea Guinea-Bissau Guyana Haiti Heard Island and McDonald Islands Holy See (Vatican City State) Honduras Hong Kong Hungary Iceland India Indonesia Iran, Islamic Republic of Iraq Ireland Israel Italy Jamaica Japan Jordan Kazakhstan Kenya Kiribati Korea, Democratic People's Republic of Korea, Republic of Kuwait Kyrgyzstan Lao People's Democratic Republic Latvia Lebanon Lesotho Liberia Libyan Arab Jamahiriya Liechtenstein Lithuania Luxembourg Macao Macedonia, the former Yugoslav Republic of Madagascar Malawi Malaysia Maldives Mali Malta Marshall Islands Martinique Mauritania Mauritius Mayotte Mexico Micronesia, Federated States of Moldova, Republic of Monaco Mongolia Montenegro Montserrat Morocco Mozambique Myanmar Namibia Nauru Nepal Netherlands Netherlands Antilles New Caledonia New Zealand Nicaragua Niger Nigeria Niue Norfolk Island Northern Mariana Islands Norway Oman Pakistan Palau Palestinian Territory, Occupied Panama Papua New Guinea Paraguay Peru Philippines Pitcairn Poland Portugal Puerto Rico Qatar Romania Russian Federation Rwanda Réunion Saint Helena Saint Kitts and Nevis Saint Lucia Saint Pierre and Miquelon Saint Vincent and the Grenadines Samoa San Marino Sao Tome and Principe Saudi Arabia Senegal Serbia Seychelles Sierra Leone Singapore Slovakia Slovenia Solomon Islands Somalia South Africa South Georgia and the South Sandwich Islands Spain Sri Lanka Sudan Suriname Svalbard and Jan Mayen Swaziland Sweden Switzerland Syrian Arab Republic Taiwan, Province of China Tajikistan Tanzania, United Republic of Thailand Timor-Leste Togo Tokelau Tonga Trinidad and Tobago Tunisia Turkey Turkmenistan Turks and Caicos Islands Tuvalu Uganda Ukraine United Arab Emirates United Kingdom United States United States Minor Outlying Islands Uruguay Uzbekistan Vanuatu Venezuela, Bolivarian Republic of Viet Nam Virgin Islands, British Virgin Islands, U.S. Wallis and Futuna Western Sahara Yemen Zambia Zimbabwe Åland Islands
  • Send private message

344

Saturday, March 30th 2013, 9:42am

If I record some sound effects for the mod, is there any chance they could get put in? It would be a lot more satisfying to have one when you install a module for instance. Maybe a special walk sound if you weigh too much, though that is probably non-trivial.

SInce sounds are planned anyway, and if your sounds are good, they will probably get added!

345

Saturday, March 30th 2013, 11:41pm

i have a suggestion for a module for all armour: blastprof, it will be protection against explosion, since i would need to set upp the max protection to about 300 or more for each peace of armour to survive a nuke with power 100 i would like to have a new type of protection that only protect you against blast (if i for example would try to get blast proof now i would need to increase protection and energy consuption, i like balance, with about 5000%.) It could be set up to take unlimited amount of blast damage, but more blast damage=more energy.
also can you add a config option that make it possible to get the energy usage of tools to increase more and more, so if i have set the pickaxe speed to 4x it will just take 2x as much energy as 2x but 25x could take 100x more energy becouse the start on insane energy consuption could have been on 20. (i would have used this to make the multi tool and other things much more powerfull but it would cost realy big amounts of energy to use it.
Blast proof? Energy armor and plating already does that.
Maybe knockback reduction.
not realy even if i et up max protection to 20 or 100 an explosion of an charged creeper can still kill me, explosions do extremly high amounts of damage so thats why it should be a protection against it, becouse if you add that kind of protection to universal damage you cant get killed but i want something that removes a % of the blast damage, and more blast damage=more energy consumed, something like the no fall damage upgrade to the boots. I can kill myself with a multitool with explosion cize 2.5 when i have full armour with energy shield with 200 protection on each peace of armor, i think thats a bit to easy to die from explosions.

This post has been edited 2 times, last edit by "sondrex76" (Mar 30th 2013, 11:54pm)


MachineMuse

Tree Cutter

  • "MachineMuse" is female
  • "MachineMuse" started this thread

Posts: 136

Location: Google Cloud

  • Send private message

346

Wednesday, April 3rd 2013, 12:06am

MPS Version 0.4.1-292 is now recommended!

New modules:
-Shears (to be replaced by projectile blade launcher eventually) - longer range than normal shears (10m!)
-Rototiller - till a circle up to an 8m radius, all at once!
-Airtight Seals - allows the helmet to act as a Galacticraft oxygen mask. Air tanks sold separately.

New functionality on old modules:
-Limited treecapitator emulation on woodcutting module
-Flight control now responds to 'sneak' and has a tinker option, 'verticality', which controls how much your view angle contributes to the direction of movement (can be more like creative flight if you want)

New configuration options:
-Mode-switching and flight control 'go down' now have Forge keybinds
-Mousewheel mode-switching can be turned off in config file
-Max. flight speed can be capped so people don't load chunks too fast and bog down the server.

Other tweaks:
-Using items while climbing a ladder or swimming should no longer paradoxically give you a speed boost
-Player input updates now only send on changes - should save on bandwidth for high-population servers with many idle
-Plasma bolt rendering improved - better lightning effect and should no longer appear as a flat panel in another player's hand
-IC2 for 1.5.1 should now be supported. **UNTESTED**
-All items in your inventory (batteries included) should now count towards your energy & weight total - no more need to install batteries in the power tool
-Fixed a couple crash cases (removing items while flying, shooting entities beyond 64 blocks with railgun)

Sinnaj63

Retired Shitposter|Globalist Conspiracy

  • "Sinnaj63" is male
  • Afghanistan Albania Algeria American Samoa Andorra Angola Anguilla Antigua and Barbuda Argentina Armenia Aruba Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados Belarus Belgium Belize Benin Bermuda Bhutan Bolivia, Plurinational State of Bosnia and Herzegovina Botswana Bouvet Island Brazil British Indian Ocean Territory Brunei Darussalam Bulgaria Burkina Faso Burundi Cambodia Cameroon Canada Cape Verde Cayman Islands Central African Republic Chad Chile China Christmas Island Cocos (Keeling) Islands Colombia Comoros Congo Congo, the Democratic Republic of the Cook Islands Costa Rica Croatia Cuba Cyprus Czech Republic Côte d'Ivoire Denmark Djibouti Dominica Dominican Republic Ecuador Egypt El Salvador Equatorial Guinea Eritrea Estonia Ethiopia Falkland Islands (Malvinas) Faroe Islands Fiji Finland France French Guiana French Polynesia French Southern Territories Gabon Gambia Georgia Germany Ghana Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala Guinea Guinea-Bissau Guyana Haiti Heard Island and McDonald Islands Holy See (Vatican City State) Honduras Hong Kong Hungary Iceland India Indonesia Iran, Islamic Republic of Iraq Ireland Israel Italy Jamaica Japan Jordan Kazakhstan Kenya Kiribati Korea, Democratic People's Republic of Korea, Republic of Kuwait Kyrgyzstan Lao People's Democratic Republic Latvia Lebanon Lesotho Liberia Libyan Arab Jamahiriya Liechtenstein Lithuania Luxembourg Macao Macedonia, the former Yugoslav Republic of Madagascar Malawi Malaysia Maldives Mali Malta Marshall Islands Martinique Mauritania Mauritius Mayotte Mexico Micronesia, Federated States of Moldova, Republic of Monaco Mongolia Montenegro Montserrat Morocco Mozambique Myanmar Namibia Nauru Nepal Netherlands Netherlands Antilles New Caledonia New Zealand Nicaragua Niger Nigeria Niue Norfolk Island Northern Mariana Islands Norway Oman Pakistan Palau Palestinian Territory, Occupied Panama Papua New Guinea Paraguay Peru Philippines Pitcairn Poland Portugal Puerto Rico Qatar Romania Russian Federation Rwanda Réunion Saint Helena Saint Kitts and Nevis Saint Lucia Saint Pierre and Miquelon Saint Vincent and the Grenadines Samoa San Marino Sao Tome and Principe Saudi Arabia Senegal Serbia Seychelles Sierra Leone Singapore Slovakia Slovenia Solomon Islands Somalia South Africa South Georgia and the South Sandwich Islands Spain Sri Lanka Sudan Suriname Svalbard and Jan Mayen Swaziland Sweden Switzerland Syrian Arab Republic Taiwan, Province of China Tajikistan Tanzania, United Republic of Thailand Timor-Leste Togo Tokelau Tonga Trinidad and Tobago Tunisia Turkey Turkmenistan Turks and Caicos Islands Tuvalu Uganda Ukraine United Arab Emirates United Kingdom United States United States Minor Outlying Islands Uruguay Uzbekistan Vanuatu Venezuela, Bolivarian Republic of Viet Nam Virgin Islands, British Virgin Islands, U.S. Wallis and Futuna Western Sahara Yemen Zambia Zimbabwe Åland Islands
  • Send private message

347

Wednesday, April 3rd 2013, 9:55am

@bove Nice Update! But I don't really understand how the weigth/inventory thingy works.

GregoriusT

inactive IC² Dev but still active GT Dev

  • "GregoriusT" is male
  • Germany

Posts: 11,190

Location: Wherever I want to be (most of the time)

  • Send private message

348

Wednesday, April 3rd 2013, 10:03am

Please stop including the IC²-API inside your Mod download. You broke the Interface of IElectricItem with that. You can always use invocation to access the IC²-API. Even for Interfaces.
I don't say, your "insert whatever here" is bad, I'm only showing possibilities for making it better.

GregTech Website

Patreon really helps me out, so if you consider funding the development of GT, so I might be able to do it full time, why not?

GregTech 6, the Main Thread, Bug Reports go here too.

I'm also reachable on #gt-dev on irc.esper.net, if you don't want to make a Forum account to contact me, for example. ;)
(I'm there almost every day, but only when I'm at my own computer, and yes you can drop bugs there too)

MachineMuse

Tree Cutter

  • "MachineMuse" is female
  • "MachineMuse" started this thread

Posts: 136

Location: Google Cloud

  • Send private message

349

Wednesday, April 3rd 2013, 10:52am

Even for Interfaces.

What, how?

I must learn this dark sorcery

edit: nvm, I think I found it. But then I'll have to construct all my items virtually? Not that that's necessarily a bad thing, but...

This post has been edited 2 times, last edit by "MachineMuse" (Apr 3rd 2013, 11:20am)


GregoriusT

inactive IC² Dev but still active GT Dev

  • "GregoriusT" is male
  • Germany

Posts: 11,190

Location: Wherever I want to be (most of the time)

  • Send private message

350

Wednesday, April 3rd 2013, 2:04pm

I have learned that trick from fallenbeast. Just create multiple Classes for one Item, and then just put the one with the potentially missing Interface inside a "try", and put the Item which doesnt contain the Interface into the "catch(Throwable e)". That way you can initialize Items, without including Interfaces of the Mods. I did that for Nuclear Control and for Buildcraft (the MJ-System) compatibility.
I don't say, your "insert whatever here" is bad, I'm only showing possibilities for making it better.

GregTech Website

Patreon really helps me out, so if you consider funding the development of GT, so I might be able to do it full time, why not?

GregTech 6, the Main Thread, Bug Reports go here too.

I'm also reachable on #gt-dev on irc.esper.net, if you don't want to make a Forum account to contact me, for example. ;)
(I'm there almost every day, but only when I'm at my own computer, and yes you can drop bugs there too)

MachineMuse

Tree Cutter

  • "MachineMuse" is female
  • "MachineMuse" started this thread

Posts: 136

Location: Google Cloud

  • Send private message

351

Wednesday, April 3rd 2013, 5:27pm

I have learned that trick from fallenbeast. Just create multiple Classes for one Item, and then just put the one with the potentially missing Interface inside a "try", and put the Item which doesnt contain the Interface into the "catch(Throwable e)". That way you can initialize Items, without including Interfaces of the Mods. I did that for Nuclear Control and for Buildcraft (the MJ-System) compatibility.

That would be fine if I only had 1 or 2, but right now I have 5 (ue, ic2, as, icbm, galacticraft) and that number will grow in the future. Since this is a combinatorial problem I will have to conditionally implement 2^n = currently 32 copies of the item, later 64 or 128 with TE, Xycraft, mekanism, and others.

I think I can do it with reflection and proxy classes but I don't know how slow it will be.

This post has been edited 3 times, last edit by "MachineMuse" (Apr 3rd 2013, 6:09pm)


MachineMuse

Tree Cutter

  • "MachineMuse" is female
  • "MachineMuse" started this thread

Posts: 136

Location: Google Cloud

  • Send private message

352

Wednesday, April 3rd 2013, 5:46pm

Hm, it looks like a dynamic proxy will add about 500 ns per invocation. Not much on its own, but when you only have 50 ms to work with, and you could be accessing it 50 times per tick, that's not so great compared to 9ns for a static invocation.
Which leaves asm. I want to learn more about that anyway, but it's going to be a few weeks before I have more than a few hours here and there.

GregoriusT

inactive IC² Dev but still active GT Dev

  • "GregoriusT" is male
  • Germany

Posts: 11,190

Location: Wherever I want to be (most of the time)

  • Send private message

353

Wednesday, April 3rd 2013, 6:22pm

You need to call the Invocation only once, when you use Proxy Items, and that is when initializing the Item. You could put all the Interface implementation into the Proxy Class without having the actual Interfaces in it, and then a few Dummies which are extending your Base Item and just add the Interfaces. But you cant indeed get rid of the combinatorical Problem, thats true.
I don't say, your "insert whatever here" is bad, I'm only showing possibilities for making it better.

GregTech Website

Patreon really helps me out, so if you consider funding the development of GT, so I might be able to do it full time, why not?

GregTech 6, the Main Thread, Bug Reports go here too.

I'm also reachable on #gt-dev on irc.esper.net, if you don't want to make a Forum account to contact me, for example. ;)
(I'm there almost every day, but only when I'm at my own computer, and yes you can drop bugs there too)

354

Wednesday, April 3rd 2013, 7:16pm

Code talk, Code talk, and guess what? More Code talk! Hope you find a way to make it work. Love the new update, no need to carry an enchanted diamond axe when my glove of awesome sauce acts like TreeCapitator.

MachineMuse

Tree Cutter

  • "MachineMuse" is female
  • "MachineMuse" started this thread

Posts: 136

Location: Google Cloud

  • Send private message

355

Wednesday, April 3rd 2013, 7:24pm

You need to call the Invocation only once, when you use Proxy Items, and that is when initializing the Item. You could put all the Interface implementation into the Proxy Class without having the actual Interfaces in it, and then a few Dummies which are extending your Base Item and just add the Interfaces. But you cant indeed get rid of the combinatorical Problem, thats true.

Err, I was unclear. I mean Java reflection proxies not FML proxies. So I can add the interfaces dynamically at runtime by creating a class 'on the fly' that extends my base item and implements whatever other interfaces. But it's ugly because it just passes in the object it's being invoked on, a method object for the method being invoked, and the arguments as Object[]s and leaves it to your proxy to work out how to handle the invocation. So even without the 500ns overhead from reflecting everything, it still has to work out which method is being invoked and handle it accordingly, which with ~20 methods on 5 different interfaces is still a bit of a problem...

Granted, I guess I could make my own electric item interface and implement those statically, that way the only time it takes the performance hit is when interfacing via IC2's API, e.g. when using the electric drill or when charging in a batbox. Still, that might be a lot in some cases. :/

This post has been edited 1 times, last edit by "MachineMuse" (Apr 3rd 2013, 7:37pm)


wasmic

Mad Scientist, but not as mad as Greg.

  • "wasmic" is male

Posts: 408

Location: Minecraftia, making a final stand against the spambots!

  • Send private message

356

Wednesday, April 3rd 2013, 8:41pm

Just a question: I think some of the GregTech recipes are too hard, but the other recipes are too easy. If I came up with some "soft-core" GregTech recipes, would you then be willing to add them to the mod as a seperate recipe scheme in the config?
Age: 16. Favourite school subject: Physics/Chemistry.

The IC2 forums could really use a lot more of [REDACTED], [DATA EXPUNGED] and ████████.

I'm in a so called "after-school". It's freaking fantastic and nowhere near as boring as normal school!

MachineMuse

Tree Cutter

  • "MachineMuse" is female
  • "MachineMuse" started this thread

Posts: 136

Location: Google Cloud

  • Send private message

357

Wednesday, April 3rd 2013, 9:10pm

It's getting to be kind of a pain to maintain all the different recipes and I kinda want to get rid of the component items entirely to go for a materials-based approach. That way we could just distribute different configs for each set of recipes and let servers put whichever they want in. Another infrastructure side project...

GregoriusT

inactive IC² Dev but still active GT Dev

  • "GregoriusT" is male
  • Germany

Posts: 11,190

Location: Wherever I want to be (most of the time)

  • Send private message

358

Wednesday, April 3rd 2013, 9:47pm

I saw you were even counting 500 nanoseconds as loading Lag. That is not really necessary to look at these small amounts of initial loading time. Nobody would complain about 10 seconds more loading time. It's only bad if the loading time gets enlengthened by something like an online Check for a stupid Changelog.

As for Proxy Class, I meant one Item Class for everything (what is something what we here in germany call "Egglaying Woolmilkpig"), and use that Class as base for all the invokated Interfaces.
I don't say, your "insert whatever here" is bad, I'm only showing possibilities for making it better.

GregTech Website

Patreon really helps me out, so if you consider funding the development of GT, so I might be able to do it full time, why not?

GregTech 6, the Main Thread, Bug Reports go here too.

I'm also reachable on #gt-dev on irc.esper.net, if you don't want to make a Forum account to contact me, for example. ;)
(I'm there almost every day, but only when I'm at my own computer, and yes you can drop bugs there too)

MachineMuse

Tree Cutter

  • "MachineMuse" is female
  • "MachineMuse" started this thread

Posts: 136

Location: Google Cloud

  • Send private message

359

Wednesday, April 3rd 2013, 10:03pm

I saw you were even counting 500 nanoseconds as loading Lag. That is not really necessary to look at these small amounts of initial loading time. Nobody would complain about 10 seconds more loading time. It's only bad if the loading time gets enlengthened by something like an online Check for a stupid Changelog.

As for Proxy Class, I meant one Item Class for everything (what is something what we here in germany call "Egglaying Woolmilkpig"), and use that Class as base for all the invokated Interfaces.

For dynamic/reflection proxy: it's not loading time, it's every time the method is invoked, which is several times per tick if they have e.g. night vision or active camouflage modules or are flying or any of a dozen other things.

I'll try it anyway. It could be negligible in the long run.

For having a separate handler that the classes just redirect to: That is roughly what I'm currently already doing, just with 1 class. It would be really easy to separate them out into different classes, but I don't want to make 32 class files for each of the possibilities.

EDIT: This is what I am thinking about: http://docs.oracle.com/javase/1.3/docs/g…tion/proxy.html

EDIT2: judging by more research, it is not that much more expensive in actual practice, maybe 2x on the affected method calls. So as long as it's not used in rendering for example (it's not) the performance impact should be negligible. So that's what I'll do then :) thanks for calling me out on this, made me figure something out that will make other bits a bit easier...

EDIT3: If it gets really bad I guess I can just use a map by player name and only update the item once per second or something.



This dynamic proxy won't work for Item or whatever because it must have Proxy as a superclass... I will have to do bytecode manipulation after all.

I wonder if I can use http://www.csg.is.titech.ac.jp/~chiba/ja…l/tutorial.html to avoid making a coremod... probably not since it needs a classloader.

This post has been edited 8 times, last edit by "MachineMuse" (Apr 3rd 2013, 11:38pm)


MachineMuse

Tree Cutter

  • "MachineMuse" is female
  • "MachineMuse" started this thread

Posts: 136

Location: Google Cloud

  • Send private message

360

Sunday, April 7th 2013, 8:59pm

If I record some sound effects for the mod, is there any chance they could get put in? It would be a lot more satisfying to have one when you install a module for instance. Maybe a special walk sound if you weigh too much, though that is probably non-trivial.

Sorry, I should have addressed this sooner but I didn't know what I was going to say. Lurch1985 (who did the sounds for IC2 I believe) already made a bunch but I haven't gotten around to figuring out Minecraft's sound system yet... but there are still plenty more to go.

The thing is, they have to be VERY heavily compressed AND still sound good in order to fit in a mod jar that millions of people are going to be downloading.

Counter:

Hits today: 29,192 | Hits yesterday: 68,824 | Hits record: 152,331 | Hits total: 65,262,707