Jump to content

[1.4.5/6/7] keepcalm's mods - Events API, BukkitForge - Interdim TPs, Lockette!


Recommended Posts

Posted

Happy new year!

 

We have a new jenkins (it might not crash as much :D)

http://build.technicpack.net:8080/job/BukkitForge

 

Unfortunately, PEX doesn't work anymore, and likely will not work for a while.

 

*Every* other perms plugin works, so just switch to one of those. Easy switch to gm: Dump your pex permissions.yml into this website, and change 'world' => overworld, 'world_the_nether' => the_nether and 'world_the_end' => the_end. A ModifyWorld version can be found here, and a list of reasons as to *why* we stopped are here. If you wish to interrogate us further, ask us on irc.esper.net, #bukkitforge.

 

1.4.6 mods work on 1.4.7 (and vice versa)

 

Thanks to Manawyrm and Toble_Miner for helping with WorldEdit!

(they gave up an entire night while we hacked away finding really stupid bugs in my code ;))

 

I've been modding for a little bit, and I finally decided to start releasing mods.

I'm mostly planning to port Bukkit plugins to forge, but I will do the inverse of what ForgeEssentials are doing - I am going to make a coremod which loads bukkit plugins the way CraftBukkit does. Admittedly, this isn't the *optimal* approach, but it will work, and once it's stable, will require a lot less work than FE will.

If you have plugins that misbehave with BukkitForge, tell me, and I'll fix it if I can!

 

Note that the term 'less crashing' does not imply complete and utter removal of bugs. They're still there, and being evil, and breaking things. And I intend to squash every last one of them. But it's still buggy, just not crashy :P - if you can fix the bug yourself, feel free to submit a PR!

 

Find me on IRC

You can find me on irc, #bukkitforge (yes I made a channel :P), during daylight hours, GMT +11

 

Found a bug?

First, make sure you've read the EAQ, and make sure it's a bug in one of MY mods. If the error doesn't contain 'keepcalm', then I can't help you.

If it IS a bug in one of my mods, post the log below, and remember that spoilers are your friend ;)

 

BukkitForge Open Beta - now with PermissionsEx and loads of other stuff!

 

  Reveal hidden contents

 

 

Events API

 

  Reveal hidden contents

 

 

ForgeCore BETA!

 

  Reveal hidden contents

 

 

ForgeCommands BETA!

 

  Reveal hidden contents

 

 

ForgeChat

 

  Reveal hidden contents

 

 

Licensing

All my mods are licensed under the LGPLv2+.

 

Keeping up with what I'm doing

If you want to see what I'm working on/have worked on, you might want to check out my github repos

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

  Reveal hidden contents

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

  • Replies 223
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Spout is a definite no-no, it's complicated, and all of it's features are implemented by forge in some way.

Spout plugins I can port (they won't be compatible with their Bukkit versions), but not the Spout API itself.

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

  Reveal hidden contents

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

  • 3 weeks later...
Posted

It doesn't output everything into the server log, but you could create a mod that does that.

 

Here's an example of a mod: https://github.com/keepcalm/BlockBreakSample

 

You could create a coremod that would download the MySQL java interface, PM me if you want a tutorial.

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

  Reveal hidden contents

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Posted

You can check on WebSend, A very very interesting mod for me.

It allow you to make some external script with php... Very usefull for me because I don't know java :)

 

And perhaps something like monster apocalypse.

 

At least 2 fonctions :

- the mob can "see" the player from far away, and try to attack

- the zombie can destroy some block (config file for this).

 

With this you absolutly need to build walls around your base or you will be soon invaded by monster :)

Posted

I am not sure if this is just user error or what but every time that i try to install ForgeCore I get this error:

 

 

  Reveal hidden contents

 

Posted

 

  Awesome project !!!

 

  I guess, these plugins can make forge users more interest. :)

 

  iconomy

  Regios

  CoreProtect

  SimpleRestart

 

  I cheer your project.

Posted

Block Break Event

Would this work to notify my mod that a block is broken by a creeper or IC2 mining laser?

 

Does your code need to run on the client side as well, because I'm making a server side only mod?

 

I tried to use this in my mod for Chunk Protection, but it doesn't seem to work.

 

I tried placing your source code "keepcalm\mods\blockbreak" in "src\common" or "src\minecraft"

 

There are no error messages.

This was the first time I tried to use outside code with my own mod, so I may be missing something.

 

public class ProtectEventHookContainer
{
@ForgeSubscribe
public void blockBreak(BlockBreakEvent event)
{
	event.player.sendChatToPlayer("Block Event Test");
}
}

And in the main mod:

	@Init
public void init(FMLInitializationEvent event)
{
	MinecraftForge.EVENT_BUS.register(new ProtectEventHookContainer());
}

 

There are other event handling methods in that EventContainer that do work.

Posted

i can't say thank you enough for getting this to work. The main plugin i'd like to see (besides worldedit) is multiverse. our main server has always been bukkit, until we discovered some of the forge mods in the last couple of months. those two are going to be the ones that finally get us to switch completely to forge.

 

btw, i just submitted a new bug... looking forward to a new build with all the recent stuff fixed. have been running into the 'ticking entity' with 'inWall' a lot also, until i turned off all creatures for testing purposes.

 

Posted
  On 12/9/2012 at 8:23 AM, Evert said:

Block Break Event

Would this work to notify my mod that a block is broken by a creeper or IC2 mining laser?

 

Does your code need to run on the client side as well, because I'm making a server side only mod?

 

I tried to use this in my mod for Chunk Protection, but it doesn't seem to work.

 

I tried placing your source code "keepcalm\mods\blockbreak" in "src\common" or "src\minecraft"

 

There are no error messages.

This was the first time I tried to use outside code with my own mod, so I may be missing something.

 

--snip--

 

Should probably add this to the OP, but for now:

 

In eclipse, click on the arrow next to the 'run' button, click on 'run configurations', and then select which setup you're using to test (Server or Client). Choose the second tab from the left, and in 'java arguments' add this:

 

-Dfml.coreMods.load=keepcalm.mods.blockbreak.asm.BlockBreakLoadingPlugin

 

And about the sided-ness, I think it's server-side, it adds the call to ItemInWorldManager.

 

And, @blindahl, can I suggest using mystcraft? Since you're moving to forge anyway? But I'll see how MV works with Bukkit4Vanilla, I need to test the world code ;)

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

  Reveal hidden contents

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Posted

You dont need a whole API to break a block, however I'm not spilling my secret on how I do it, but you don't need an api

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Posted

API doesn't mean 'big-and-clunky-pile-of-code' - it's an Application Programming Interface (or something), the code is mostly just forge wrapper code.

 

Also, the point is to use Forge's event system, which allows for less hassle, and less messing with code.

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

  Reveal hidden contents

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Posted

Mystcraft - interesting, hadn't seen that before. However, i'm more interested in moving my existing worlds over to forge than making new ones. And it doesn't look like mystcraft is aimed at doing that. although their mechanic is rather cool, for a myst fan.

Posted
  On 12/4/2012 at 4:29 AM, TheAraulin said:

I am not sure if this is just user error or what but every time that i try to install ForgeCore I get this error:

 

 

  Reveal hidden contents

 

 

I got the same error. No matter which directory I put it in the same error occurs again and again.

Posted

So it says 'ForgeCore is a coremod!'?

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

  Reveal hidden contents

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Posted

I can load the game, execute commands with essentials in game, but the moment i place any block this happens and the game crashes.

 

2012-12-13 01:39:47 [iNFO] [sTDERR] java.lang.NoSuchMethodError: iq.h(F)Laob;

2012-12-13 01:39:47 [iNFO] [sTDERR]    at keepcalm.mods.bukkit.forgeHandler.Pla

yerUtilities.getTargetBlock(PlayerUtilities.java:17)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at keepcalm.mods.bukkit.forgeHandler.For

geEventHandler.playerSaysHai(ForgeEventHandler.java:220)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraftforge.event.ASMEventHand

ler_98_ForgeEventHandler_playerSaysHai_PlayerInteractEvent.invoke(.dynamic)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraftforge.event.ASMEventHand

ler.invoke(ASMEventHandler.java:35)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraftforge.event.EventBus.pos

t(EventBus.java:103)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraftforge.event.ForgeEventFa

ctory.onPlayerInteract(ForgeEventFactory.java:25)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at ir.a(ItemInWorldManager.java:378)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at iv.a(NetServerHandler.java:564)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at fl.a(SourceFile:58)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at cg.b(TcpConnection.java:451)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at iv.d(NetServerHandler.java:87)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at iw.b(NetworkListenThread.java:55)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at ht.b(SourceFile:30)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraft.server.MinecraftServer.

r(MinecraftServer.java:696)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at ho.r(DedicatedServer.java:252)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraft.server.MinecraftServer.

q(MinecraftServer.java:592)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraft.server.MinecraftServer.

run(MinecraftServer.java:499)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at fy.run(SourceFile:856)

2012-12-13 01:39:47 [sEVERE] [Minecraft] Encountered an unexpected exception NoS

uchMethodError

java.lang.NoSuchMethodError: iq.h(F)Laob;

        at keepcalm.mods.bukkit.forgeHandler.PlayerUtilities.getTargetBlock(Play

erUtilities.java:17)

        at keepcalm.mods.bukkit.forgeHandler.ForgeEventHandler.playerSaysHai(For

geEventHandler.java:220)

        at net.minecraftforge.event.ASMEventHandler_98_ForgeEventHandler_playerS

aysHai_PlayerInteractEvent.invoke(.dynamic)

        at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:

35)

        at net.minecraftforge.event.EventBus.post(EventBus.java:103)

        at net.minecraftforge.event.ForgeEventFactory.onPlayerInteract(ForgeEven

tFactory.java:25)

        at ir.a(ItemInWorldManager.java:378)

        at iv.a(NetServerHandler.java:564)

        at fl.a(SourceFile:58)

        at cg.b(TcpConnection.java:451)

        at iv.d(NetServerHandler.java:87)

        at iw.b(NetworkListenThread.java:55)

        at ht.b(SourceFile:30)

        at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:696)

        at ho.r(DedicatedServer.java:252)

        at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:592)

        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:499)

        at fy.run(SourceFile:856)

Posted
  On 12/13/2012 at 7:44 AM, ev3rm0r3 said:

I can load the game, execute commands with essentials in game, but the moment i place any block this happens and the game crashes.

 

2012-12-13 01:39:47 [iNFO] [sTDERR] java.lang.NoSuchMethodError: iq.h(F)Laob;

2012-12-13 01:39:47 [iNFO] [sTDERR]    at keepcalm.mods.bukkit.forgeHandler.Pla

yerUtilities.getTargetBlock(PlayerUtilities.java:17)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at keepcalm.mods.bukkit.forgeHandler.For

geEventHandler.playerSaysHai(ForgeEventHandler.java:220)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraftforge.event.ASMEventHand

ler_98_ForgeEventHandler_playerSaysHai_PlayerInteractEvent.invoke(.dynamic)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraftforge.event.ASMEventHand

ler.invoke(ASMEventHandler.java:35)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraftforge.event.EventBus.pos

t(EventBus.java:103)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraftforge.event.ForgeEventFa

ctory.onPlayerInteract(ForgeEventFactory.java:25)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at ir.a(ItemInWorldManager.java:378)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at iv.a(NetServerHandler.java:564)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at fl.a(SourceFile:58)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at cg.b(TcpConnection.java:451)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at iv.d(NetServerHandler.java:87)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at iw.b(NetworkListenThread.java:55)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at ht.b(SourceFile:30)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraft.server.MinecraftServer.

r(MinecraftServer.java:696)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at ho.r(DedicatedServer.java:252)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraft.server.MinecraftServer.

q(MinecraftServer.java:592)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at net.minecraft.server.MinecraftServer.

run(MinecraftServer.java:499)

2012-12-13 01:39:47 [iNFO] [sTDERR]    at fy.run(SourceFile:856)

2012-12-13 01:39:47 [sEVERE] [Minecraft] Encountered an unexpected exception NoS

uchMethodError

java.lang.NoSuchMethodError: iq.h(F)Laob;

        at keepcalm.mods.bukkit.forgeHandler.PlayerUtilities.getTargetBlock(Play

erUtilities.java:17)

        at keepcalm.mods.bukkit.forgeHandler.ForgeEventHandler.playerSaysHai(For

geEventHandler.java:220)

        at net.minecraftforge.event.ASMEventHandler_98_ForgeEventHandler_playerS

aysHai_PlayerInteractEvent.invoke(.dynamic)

        at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:

35)

        at net.minecraftforge.event.EventBus.post(EventBus.java:103)

        at net.minecraftforge.event.ForgeEventFactory.onPlayerInteract(ForgeEven

tFactory.java:25)

        at ir.a(ItemInWorldManager.java:378)

        at iv.a(NetServerHandler.java:564)

        at fl.a(SourceFile:58)

        at cg.b(TcpConnection.java:451)

        at iv.d(NetServerHandler.java:87)

        at iw.b(NetworkListenThread.java:55)

        at ht.b(SourceFile:30)

        at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:696)

        at ho.r(DedicatedServer.java:252)

        at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:592)

        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:499)

        at fy.run(SourceFile:856)

But, as it happens, you can't read. It's a known bug, use the issues tracker on github next time!

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

  Reveal hidden contents

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Posted

 

 

Bukkit4Vanilla (soon to be known as BukkitForge) Open Beta - now v2 for 1.4.5!

 

  Reveal hidden contents

 

 

 

ForgeCore BETA!

 

  Reveal hidden contents

 

 

ForgeCommands BETA!

 

  Reveal hidden contents

 

 

ForgeChat

 

  Reveal hidden contents

 

 

 

Block Break Event

 

  Reveal hidden contents

 

Licensing

All my mods are licensed under the LGPLv2+.

 

Keeping up with what I'm doing

If you want to see what I'm working on/have worked on, you might want to check out my github repos

 

Would you mind maybe giving a quick how to structure all this together say if someone wanted to use this for there server? i have been soooo looking to use something like this setup but just not understanding what and where to start 1st.. does this (bukkit4vanilla.jar file go into the minecraft_server.jar , does it replace it? does forge get added to the minecraft_server.jar or the bukkit4vanilla, is it in it? i tried a minecaraft_server.jar with the latest forge and placed the  ForgeCore into the coremod folder and got crash "coremod is a coremod!" same as other person in this forum posting. a little more explaination as to what goes where etc would be great if you wouldnt mind.. i'm not a complete idiot as i have run several servers vanilla, tekkit, forge modded... just not understanding where your files go

 

Thanks :)

Posted

I'm fairly certain I made it clear. If it says coremod, put it in coremods. If it doesn't, put it in mods. NO jarmods here!

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

  Reveal hidden contents

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.