EventScripts Forums
Mattie's EventScripts and Source Forums
Script Categories
16000 (15) abilities (15) addon (72) addons (18) admin (355) admins (24) advert (30) adverts (32) afk (18) alerts (12) ammo (25) anti (21) armor (11) auth (16) automatic (15) awp (29) ban (25) bank (11) ba_jail (35) bhop (46) block (27) bomb (48) bonus (25) boost (22) bot (36) bot-management (20) bots (24) bullet (13) bunnyhop (19) Buy (27) buymenu (13) c4 (12) cash (77) Change (14) chat (77) cheat (15) clan (17) classes (24) color (30) colors (21) command (23) commands (21) config (28) configurable (11) connect (58) counter (12) Counter-Strike-Source (20) CS:S (20) css (3404) custom (13) Damage (49) database (14) dead (19) Deagle (11) death (20) deathmatch (79) deathrun (17) deutsch (15) dice (12) disconnect (26) Dissolve (12) dm (24) dod:s (11) dods (502) download (13) easy (26) effect (14) effects (126) English (20) entity (24) est (12) es_tools (14) Eventscript (12) exploit (11) flashbang (27) français (104) french (36) fun (312) funny (18) Gabeee (11) game (12) gamemode (13) gameplay (175) German (11) give (22) gravity (16) grenade (28) grenades (32) gun (16) GunGame (31) GunGame5 (11) guns (20) Hack (16) headshot (37) health (72) hegrenade (15) help (11) hit (13) hl2dm (444) HP (26) hudhint (13) hun (18) hungarian (26) info (53) information (19) invisible (11) IP (13) jail (82) jailbreak (14) join (47) jump (19) kick (25) kill (51) kills (24) knife (66) leveling (38) LnD (14) lol (11) magyar (49) management (14) manager (11) mani (16) map (32) map-management (26) maps (17) match (25) Memphis-84 (13) menu (144) message (34) messaging (52) minecraft (12) mod (121) model (18) models (33) modye (16) money (50) motd (13) music (33) mute (20) nades (20) name (15) new (13) noblock (54) orangebox (23) player (49) player-management (31) player-tracking (28) popup (72) prop (13) propmenu (14) props (34) protect (12) protection (32) punish (11) punishment (51) python (80) quake (33) QuakeSounds (12) race (13) races (20) radio (31) random (47) rank (42) rates (15) rcon (12) realism (22) Regeln (23) respawn (69) restrict (41) round (26) rpg (32) rules (63) say (17) score (16) scout (29) Script (25) script-helper (25) scriptpack (33) sdk (171) server (63) server-tools (42) shop (12) showdamage (20) silly (31) simple (33) skin (17) skins (35) slay (13) soccer (14) sound (68) sounds (109) source (14) spanish (20) spawn (82) speed (26) statistics (14) stats (57) status (15) Steam (11) STEAMID (30) Superhero (15) surf (41) Team (30) team-balance (14) teleport (17) text (19) TF2 (142) time (23) timer (15) tools (15) tracers (19) triggers (11) uedi (17) uses_auth (18) vip (24) vote (40) voting (22) war (25) Warcraft (12) warcraft-source (20) wc3 (14) wcs (47) wcs:Python (32) weapon (88) weapons (120) web (16) welcome (14) wuerfeln (11) zm (26) zombie (100) zombiemod (55) zombies (12)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (20) .:modye:. (14) .eMko* (6) 101satoon101 (12) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (9) Ace Rimmer (40) adminc (5) adyshor37 (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) Ayuto (5) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (8) Bioko (10) blackshoxx (9) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (32) cagemonkey (8) capo azzlack (7) captain master (6) carbon-14 (10) CaskioUTF (5) cbirou (15) CbRRR (16) ChaCaLz2psy4 (5) CharlesT (5) Chris1888 (5) Chrisber (5) chrismrulz (10) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) CrAzD (6) craziest (11) dani12356 (12) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) dead man walker (12) deathx9 (5) Deathyy (16) dhack (17) Di[M]aN (12) DJ Fire-Black prod (8) DoCky (31) Don (15) dordtcore (9) DragonFreddo (8) Drassil (5) dretax14 (11) Einlanzers (47) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (10) FMIS (5) Franc1sco (17) freddukes (18) Frequency (6) Fridge (5) Fugi91 (6) Fulmine (5) G4ME (5) GAMEREN2 (8) german9114 (13) GODJonez (40) GoodfellaDeal (5) Hansi (6) Hisoka (6) HitThePipe (7) HOLLDIDAY (24) Icetouch (6) ichthys (25) Im the new guy (14) iNexus (13) infamous1 (9) isivisi (13) ispaine (7) Jackmaster (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (11) KDBFame (6) L'In20Cible (11) L.P.H (8) Largo Usagi (10) LnD (14) Lobe (11) loKkdoKk (8) lolo-le-haricot (7) LosNir (5) [email protected] (9) M4rc3L-XCN (7) macshot (7) magyar-oneill (9) Matth (7) Mattie (21) mave1993 (5) MBchrono (15) McFly (20) Medda (5) Memphis-84 (15) Messiah93 (20) Mickyy (5) micmacx (6) minimal42O (5) Mitchell (5) Mixer57 (5) modye (6) Monster_Bitch1 (9) Mordavolt (7) motomoto (23) MrScriptaz (6) mryoung (6) MyTechZone.de (9) NicolasConfigz (9) Nicolous (23) ojii (31) oliVier (10) Omega68 (6) Omega_K2 (11) Owned|Myself (8) P3N (7) pand3mic (6) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (9) pinkyyy -.- (5) pitbull0993 (7) PixelGamer (7) qwern (5) randomknifer (9) Raptor150 (31) Ratzee (6) ReaCtioN2oo9 (6) RedCliff (5) Rennnyyy (17) revolutionfighters (8) RideGuy (12) Rio (9) Roeliekt (6) roof (16) runamagic (13) Ryezin (5) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (15) sgt.angel (6) Shad0w (11) ShoTaXx# (7) sicilia (7) sicman_adrian (22) skillz92 (7) sn4k3 (18) Snake12 (7) snake38 (10) sonicsight (7) SpeedFreak (9) spoonman184 (12) stabby (22) stas (27) Stirni (6) stonedegg (8) Strontium Dog (30) SumGuy14 (25) SuperDave (49) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (27) TheDonFather (5) theresthatguy (6) Tiny Tod (7) tooshkan4uk (8) Totyahun (9) uedi (38) ultimatebuster (6) Undead (25) usernamesaretaken (15) wanted241 (9) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) Wundermaxe (5) X-Mania (5) XE_ManUp (14) xfalcon61 (5) zSweetXz (5) ZZMatty (6) [Cs]Lord_Inferno2 (11) [DAP]Kickbutt (5) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Author Message
User avatar
Site Administrator
Site Administrator
Profile

Posts: 7646
Location:
At Work
 
New postPosted: 2011-03-22, 11:29 pm 
   Post subject: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

EventScripts Minecraft v0.7 (Bukkit)

What is it?

    An easy scripting engine so you can mod your own Minecraft server without compiling anything. It leverages Python/Jython and the original EventScripts engines in order to make modding as easy as possible, keeping good performance because the scripts are compiled to Java bytecode when you load them.

    For example, here's all you need to prevent drowning on your server:

    PYTHON:
      import esm

      # Just name the function for the event we want to monitor
      def entity_damage(event):
          if esm.isPlayer(event.entity):
              if event.getCause() == event.DamageCause.DROWNING:
                  return False
          return True


    Also, see my MagicItems mod for an advanced example.

Installation Instructions

    On your Minecraft server:

    • Install CraftBukkit (You need build 461 or higher.)
    • Place EventScripts.jar your server's plugins subfolder. (e.g. minecraft/plugins/EventScripts.jar )
    • Optional: Add es_load scriptname to minecraft/autoexec.cfg for all scripts you want to auto-load (create it if necessary, ES will create it if it doesn't exist)

Download:


Documentation:

  • ES-specific documentation (coming soon, see examples)


Disclaimer:
    Minecraft is in beta, Bukkit is under development, and EventScript is in alpha.

    The game will change, the API will change and your scripts will break! Get used to it until things settle down with Minecraft and/or the official Minecraft API is released. You were warned!


Changelog:
  • v0.7: First Bukkit supported release
    (see ES repo for detailed changelist)

Source Code


Hope you like this,
-Mattie


User avatar
Web Hotshot
Web Hotshot
Profile

Posts: 557
Location:
Sheffield, UK

Steam Friends Name: ashbash1987
 
New postPosted: 2011-03-23, 5:25 am 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 461+)

Hello Mattie. I'll be installing this on my mini Minecraft server to have a play with at some point in the next few days, so I'll let you know how I get on with it.

:)

_________________
My home sweet home: http://www.ashthebash.co.uk
Now in Sheffield!


User avatar
Helper
Profile

Posts: 227
Location:
France
 
New postPosted: 2011-03-27, 11:51 am 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 461+)

Hello Mattie,

When I run a plugin with the command es_load,
I have this error occurring in the console.
ps: I am on Bukkit build 530.

Image

Thank you


User avatar
Helper
Profile

Posts: 206
Location:
Russian Federation

Steam Friends Name: none
 
New postPosted: 2011-04-01, 8:50 am 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 461+)

Please make it for 612 build of bukkit. Thank you.

_________________
Minecraft Eventscripts (Bukkit) | Minecraft Server (1.4.01 and 1.5) | ESM Tutorials
Все для вашего сервера cs:source


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7646
Location:
At Work
 
New postPosted: 2011-04-01, 12:27 pm 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 461+)

neatek wrote:
Please make it for 612 build of bukkit. Thank you.


It works on Bukkit 617 for me-- what problems do you see? (Some events might not fire, but I'm curious if you're having any worse problems.)

-Mattie


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7646
Location:
At Work
 
New postPosted: 2011-04-03, 9:58 am 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

I fixed a handful of problems for Bukkit 617+ to give it full support. You can see the details here:
https://bitbucket.org/Mattie/eventscrip ... 059761652e

Important note: Event names have changed so that none of them are past-tense anymore. "entity_damaged" is now "entity_damage", etc. For more details, see this post: http://forums.bukkit.org/threads/discus ... ost-171185

player_item does not work anymore. You have to use player_interact and check event.action to see if it is one of these types:
LEFT_CLICK_BLOCK, RIGHT_CLICK_BLOCK, LEFT_CLICK_AIR, RIGHT_CLICK_AIR, PHYSICAL

One easy way to do this is to use event.action.name() and compare it against one of those strings above like I do in magicitems.py here: https://bitbucket.org/Mattie/eventscrip ... s.py#cl-91
-Mattie


User avatar
Guru
Guru
Profile

Posts: 1444
Location:
Germany
 
New postPosted: 2011-04-06, 12:15 am 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

Why do you need Bukkit to install Eventscripts? What does Bukkit do?

Sorry that I'm a total Minecraft addon noob :D

_________________
My public Addons:
Private Addons: (write me a PM, or add me in Steam)
  • Surf Timer
  • Bhop Timer


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7646
Location:
At Work
 
New postPosted: 2011-04-06, 7:56 am 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

Absolute wrote:
Why do you need Bukkit to install Eventscripts? What does Bukkit do?

Sorry that I'm a total Minecraft addon noob :D


Bukkit is actually an alternative version of the Minecraft server that supports plugins. The normal Minecraft server does not support plugins. Notch keeps saying he'll add an API, but I don't see that happening this year unless something magical occurs.

-Mattie


User avatar
Helper
Profile

Posts: 206
Location:
Russian Federation

Steam Friends Name: none
 
New postPosted: 2011-04-07, 9:53 am 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

Maybe you make Wiki for minecraft eventscripts? I think it will be usefull.
And please write a couple of examples of the use parameters and events of the blocks.

Dont work:
Code:
import esm

def block_break(ev):
   player = ev.getPlayer()
   block_id = ev.getBlock()
   block_type = ev.getType()
   player.sendMessage("Block id:" + block_id)
   player.sendMessage("Block type:" + block_type)

ev.getBlock() and ev.getType() needed str format?
How to create block?

_________________
Minecraft Eventscripts (Bukkit) | Minecraft Server (1.4.01 and 1.5) | ESM Tutorials
Все для вашего сервера cs:source


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7646
Location:
At Work
 
New postPosted: 2011-04-07, 10:55 am 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

neatek wrote:
Maybe you make Wiki for minecraft eventscripts? I think it will be usefull.
And please write a couple of examples of the use parameters and events of the blocks.

Dont work:
Code:
import esm

def block_break(ev):
   player = ev.getPlayer()
   block_id = ev.getBlock()
   block_type = ev.getType()
   player.sendMessage("Block id:" + block_id)
   player.sendMessage("Block type:" + block_type)

ev.getBlock() and ev.getType() needed str format?
How to create block?


Did you look at the examples zip I link above? It has a few good examples. For example, sticks.py and magicitems also shows block break, too. If I wanted some info from block_break, I'd do this actually:
PYTHON:
    def block_break(ev):
            player = ev.player                     # shortcut for ev.getPlayer()
            block_type_id = event.block.typeid     # shortcut for ev.getBlock().getTypeId()
            event_name = ev.eventname              # shortcut for ev.getEventName()
            player.sendMessage("Block type id: " + str(block_type_id))
            player.sendMessage("Event name: " + event_name)


For this specific event, you can see all the info you can get and documentation for each here:
http://javadoc.lukegb.com/Bukkit/d1/d39 ... mbers.html

-Mattie


User avatar
Helper
Profile

Posts: 206
Location:
Russian Federation

Steam Friends Name: none
 
New postPosted: 2011-04-07, 12:45 pm 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

Quote:
ES-specific documentation (coming soon, see examples)

I hope this will be Wiki site about all functions? As soon as it becomes available?

_________________
Minecraft Eventscripts (Bukkit) | Minecraft Server (1.4.01 and 1.5) | ESM Tutorials
Все для вашего сервера cs:source


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7646
Location:
At Work
 
New postPosted: 2011-04-07, 1:12 pm 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

neatek wrote:
Quote:
ES-specific documentation (coming soon, see examples)

I hope this will be Wiki site about all functions? As soon as it becomes available?


It will be a long time before that is ready, primarily because ES wraps Bukkit and Bukkit won't stop changing its APIs. I strongly recommend you get familiar with the Bukkit documentation a little and the ES examples as a learning starting point.

Also, ask questions if you have them. :)
-Mattie


User avatar
Helper
Profile

Posts: 206
Location:
Russian Federation

Steam Friends Name: none
 
New postPosted: 2011-04-25, 10:41 am 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

You can update ESM(Bukkit #720 Latest now - http://ci.bukkit.org/job/dev-CraftBukkit/) or just make a wiki site?
Add something new

- add register commands. for using /command
- fix the spawn event.
...

_________________
Minecraft Eventscripts (Bukkit) | Minecraft Server (1.4.01 and 1.5) | ESM Tutorials
Все для вашего сервера cs:source


User avatar
Professor
Professor
Profile

Posts: 1880
Location:
Germany, Ba-Wü

Steam Friends Name: Eminemfreak1
 
New postPosted: 2011-05-11, 3:30 pm 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

Awesome :) I like it and hope for more updates and continue developing this tool

_________________
Knowledge is a present!
Image


User avatar
Reader
Profile

Posts: 75
Location:
USA

Steam Friends Name: Lobster_Man246
 
New postPosted: 2011-05-18, 3:00 pm 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

Just tried this on bukkit 740 and it keeps crashing if the server is reloaded more than 3-4 times, giving out of memory errors and whatnot.

Just wondering if this is a known issue and/or if a fix or update is planned soon :D


User avatar
Reader
Profile

Posts: 75
Location:
USA

Steam Friends Name: Lobster_Man246
 
New postPosted: 2011-05-26, 6:17 am 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

Just a bump since no reply? :(


User avatar
New User
Profile

Posts: 10
Steam Friends Name: theoneandonly42
 
New postPosted: 2011-06-17, 1:08 pm 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

LobsterMan, I'm not sure if you need any help anymore, but it was most likely an issue with Bukkit at the time. I suggest updating to the latest build (860 at time of post). I have had absolutely no issues with EventScripts and the reload command (I just tried reload 5 times in a row).

Check the ensure your system has enough memory to handle the amount of players that are on it. If it occurs with simply having plugins loaded, make sure it's not just EventScripts; there is a chance it is another plugin on your server that is causing the issue.

If you go by the 65MB rule (1 player = 65MB of RAM required typically), then you must have 1GB of RAM for every 15 players (approximately) that are connected and using the server consistently. If you are on a 64-Bit OS, ensure that you have the 64-bit version of Java 6 installed (this can be done by opening the 64-bit version of Internet Explorer on Windows. The 64-bit option will not appear if you use any other browser.

_________________
Image


User avatar
Reader
Profile

Posts: 75
Location:
USA

Steam Friends Name: Lobster_Man246
 
New postPosted: 2011-06-17, 3:48 pm 
   Post subject: Re: Introducing EventScripts Minecraft [v0.7] (Bukkit 617+)

Derragon wrote:
LobsterMan, I'm not sure if you need any help anymore, but it was most likely an issue with Bukkit at the time. I suggest updating to the latest build (860 at time of post). I have had absolutely no issues with EventScripts and the reload command (I just tried reload 5 times in a row).

Check the ensure your system has enough memory to handle the amount of players that are on it. If it occurs with simply having plugins loaded, make sure it's not just EventScripts; there is a chance it is another plugin on your server that is causing the issue.

If you go by the 65MB rule (1 player = 65MB of RAM required typically), then you must have 1GB of RAM for every 15 players (approximately) that are connected and using the server consistently. If you are on a 64-Bit OS, ensure that you have the 64-bit version of Java 6 installed (this can be done by opening the 64-bit version of Internet Explorer on Windows. The 64-bit option will not appear if you use any other browser.


Thanks for the heads up, I sort of gave up temporarily since it wasn't working, but I'll give it a try with a more recent bukkit build on 1.6


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group