webbukkit / dynmap

A set of Minecraft mods that provide a real time web-based map system for various Minecraft server implementations.
https://www.reddit.com/r/Dynmap/
Apache License 2.0
2.06k stars 420 forks source link

Support for RedPower 2 #522

Closed R3ap3rG closed 12 years ago

R3ap3rG commented 12 years ago

I've seen in the files support for IndustrialCraft and BuildCraft. Will you upossibly be adding support for RedPower as well?

mikeprimm commented 12 years ago

I'm going to need to get some mods done to Bukket before I can support this one - I don;'t currently have a way to capture the raw tile entity data, and RedPower blocks are completely dependent upon this data. Lets keep this open while I start working this - it may be some time, though.

R3ap3rG commented 12 years ago

not a problem. just a suggestion so im in no rush for it. thought it might be a nice addition

mikeprimm commented 12 years ago

Yep - me too - was running it on my industry server :)

OvermindDL1 commented 12 years ago

At the very least it would be nice to get the world blocks in, the ores, marble, basalt, etc... Those do not use tile entities, they just use damage values and all are cubes so they should be quite simple to add, and will make the map not look like it has floating lava pipes...

Also, any chance of an option to draw unknown mod blocks as, say, a highly transparent pink cube or so?

mikeprimm commented 12 years ago

Sounds good - I'll give that level of implementation a look

mikeprimm commented 12 years ago

Support has been added in the current 0.29 development build! It doesn't handle microblocks - that's going to be a project on its own - nor wiring (which is really just more microblocks), and most of the orientation sensitive blocks are shown with a fixed orientation (logic, machines), but everything should render. As with the others, there is a setting in configuration.txt, redpower2-support, that must be set to true to enable the mappings.

Also, for this and for the other non-Bukkit mods being supported (Buildcraft and IndustrialCraft2, presently), the block ID mapping has been made parametric - that is, the block ID associated with a given block type can be modified using configuration.txt settings (needing to do this is not too uncommon, to avoid conflicts with other mods). The block IDs all correspond to the defaults used by the respective mods, but can be adjusted by adding settings to configuration.txt, formatted as follows:

# For Buildcraft
bc-<Buildcraft-block-name>: <block-id-num>
# For IndustrialCraft2
ic2-<IC2-block-name>: <block-id-num>
# For RedPower2
rp2-<RP2-block-name>: <block-id-num>

The names correspond to those used in their configuration files: e.g. for RedPower2, rp2-base-appliance would be used to adjust the appliance block; for IC2, ic2-blockCable for the cable blocks; for BuildCraft, bc-pipe for the pipe blocks.

OvermindDL1 commented 12 years ago

For note, the basic support you added is working perfectly! Microblocks would just be icing at this point. Thank you very much! :)

mikeprimm commented 12 years ago

Cool - thanks for the feedback!

mikeprimm commented 12 years ago

Delivered in 0.29 release