Saturday, April 30, 2011

r605 - Bug Fixes and New Mobs

This update is mainly for bugs that crept in with the 1.5 update but I threw in some mobs quickly that use guns for those who are making maps with guns.  Nothing too special just skeletons and zombies with weapons.


  • Fixed redstone texture.
  • Fixed trigger memory to not render like grass.
  • Hookshot and umbrella icon updates correctly now.
  • Adds some new mobs: Skeleton w/ Rifle, Skeleton w/ Shotgun, Zombie w/ Pistol. 

With Maps - http://dl.dropbox.com/u/20049117/AdventureCraft_r605.zip
No Maps - http://dl.dropbox.com/u/20049117/AdventureCraft_NoMaps_r605.zip
Update - http://dl.dropbox.com/u/20049117/AdventureCraft_Update_r605.zip

Friday, April 29, 2011

Thursday, April 28, 2011

1.5 Status Update

Just giving a brief update.  I've got AdventureCraft working with 1.5 but some various things are broken still that need to be fixed and how certain things are done that will need to be updated.

Currently broken is weather, achievements always popping up (though you can't do them), hookshot and umbrella icons don't change, and I'm sure more things I've not caught yet.

After work today I should be able to finish the update and get a new version out.

Sunday, April 24, 2011

New Scripting Commands

Mob Spawner scripts have a variable set for them called spawnedEntities that is a list of currently alive spawned entities for the spawner.  Also note that all scripts are global to each other so variables set by one can be read by another.  Currently the scope isn't persisted between saving and loading but will be in the future.

Entity

  • ScriptEntity[] getEntitiesWithinRange(double dist)
  • ScriptEntity getMountedEntity()

EntityLiving

  • playLivingSound()
  • spawnExplosionParticle()
  • heal(int i)
  • attackEntityFrom(ScriptEntity e, int i)
  • isOnLadder()
  • ScriptEntity getTarget()
  • ScriptVec3 getLookVec()
  • int getHealth()
  • setHealth(int i)
  • int getMaxHealth()
  • setMaxHealth(int i)

Weather

  • setPrecipitating(boolean precipate)
  • boolean getPrecipitating()
  • setTemperatureOffset(double tempOffset)
  • double getTemperatureOffset()

r584 - Musical Instruments

I recommend getting the version with maps this time if you want to try out scripting since I include a bunch of samples with the Biome Test map.  Will be posting all the new script commands shortly.  1.5 is still waiting on MCP for those wondering about that release.

  • Adds tons of additional new scripting commands.
  • Music Instruments now can be played by right clicking then pressing 1 through 0 keys and using shift for sharps. Musical songs can trigger scripts.
  • Mob spawners can have scripts for on spawning, on death, and on tick updates.
  • Mob spawner UI revamped and added 3 additional OnDeath triggers.
  • Sample musical scripts with the biome test with the file called musicScripts.txt and scripts in the script directory.


With Maps - http://www.mediafire.com/?6d4pxxcjj9o8yty
No Maps - http://www.mediafire.com/?z5a281ayi5d7i1c
Update - http://www.mediafire.com/?me1dn02y230hyrv

Saturday, April 23, 2011

Working on Instruments and Scripting

Started work on revamping the mob spawner UI and instead decided I wanted to focus on the music instruments first.  Just need to finish connecting the scripting to the songs for map designers.

Thursday, April 21, 2011

Portal 2, Mob Scripting, and 1.5

As some of you may know, Portal 2 came out this past Tuesday.  So the last couple days I was playing through Portal 2 and just started on the coop with my girlfriend today. As a result, that has been occupying most of my recent free time.

I have tomorrow off and going to be spending a good portion of time adding in additional scripting for working with entities.  In particular, I want to add in scripting to mob spawners for when they spawn, on tick updates while spawned, and once all the spawns have been killed.  You will have access to the entities that were spawned and hopefully should be able to do some interesting things.

1.5 was also released this week and I will hopefully update to it this weekend once MCP gets updated but till then its stuck on 1.4_01.

Sunday, April 17, 2011

Current scripting commands in r563

Script Commands

chat
 print(String msg, Object ...args)

player (actually all commands available for all entities when I add methods to get them)
 ScriptVec3 getPosition()
 setPosition(double x, double y, double z)
 ScriptVecRot getRotation()
 setRotation(float yaw, float pitch)
 ScriptVec3 getVelocity()
 setVelocity(double x, double y, double z)
 addVelocity(double x, double y, double z)
 setDead()
 mountEntity(ScriptEntity e)
 isBurning()
 isAlive()
 isRiding()
 isSneaking()

time
 get()
 set(long time)
 getRate()
 setRate()
 getTickCount()

world
 getBlockId(x, y, z)
 setBlockId(x, y, z, id)
 getMetadata(x, y, z)
 setMetadata(x, y, z, metadata)
 setBlockIdAndMetadata(x, y, z, id, metadata)

r563 - The scripting block

I've added in the start of the scripting block. You can't do much with it yet but it can run simple scripts from the scripts directory in your map folder.  Near term goals at the moment are to document current commands, add more commands, add persistent variables, and improve the launcher so it can update AdventureCraft.


  • Animated fan texture can be replaced.
  • Muzzle flash added to guns.
  • Adding several new scripting commands.
  • Adds a script block which can execute code OnTrigger, OnDetrigger, and OnUpdate.
  • Some launcher improvements so won't try to popup a webpage if SWT doesn't work.

Also I'm releasing the first update download which is a quite bit smaller.  Just extract it to the location of where the AdventureCraft folder is located.

With Maps -http://www.mediafire.com/?cnuc0zgbw3b1tbe
No Maps - http://www.mediafire.com/?9wxvt64a8ofjw56
Update (Requires at least r553a) - http://www.mediafire.com/?xf72h47ww818r75



Sample Script btw I was testing with.


pos = player.getPosition()
chat.print("Player: %.1f, %.1f, %.1f", pos.x, pos.y, pos.z)
player.setPosition(pos.x, pos.y + 10, pos.z);
pos = player.getPosition()
chat.print("Player: %.1f, %.1f, %.1f", pos.x, pos.y, pos.z)

Progress Today

So far today, I've fixed up the launcher so it should work better hopefully for some people.  Been focusing mainly on adding script commands today.  Nothing too complex but in today's release tonight I should be able to squeeze in the scripting block (currently working on it now).  I also took a little diversion today and added a muzzle flash image to the guns.  Nothing too complex but slightly less tedious than adding the scripting stuff.

Saturday, April 16, 2011

r555 - Fixing Timers w/o Delay

Haven't had much time to work on AdventureCraft as I have a wedding that I'm about to goto but here is a bug fix. Timers with delay of zero no work correctly and redstone power will glow when triggered.

No Maps - http://www.mediafire.com/?2a5hdar9zel4qhb

Edit: Oh also the palette should work properly again.

Thursday, April 14, 2011

r553a - New Launcher

I've been busy so haven't had much time to work on AdventureCraft but finished up the start of the new launcher.  The installs are slightly larger but soon I will be adding a feature for updating from the launcher and will be releasing update files that are just the new jar and resources. Let me know how this new launcher is working. BTW those on Linux or Mac should be able to just run the AdventureCraft.jar and it will figure everything out if all is good.

With Maps - http://www.mediafire.com/?xvkdc4bct73wk9r
No Maps - http://www.mediafire.com/?79980wtbjj8g36l

Monday, April 11, 2011

Working on a new launcher

Seems there is an increase in issues with people being able to play AdventureCraft. As a result, I'm going to work on a new launcher.  This time going to try to build an actual JAR file and get rid of the classes separate files for installing and running the game.

What do you want from scripting?

Curious to hear what people are expecting/wanting to do with scripting.

Currently planning to expose the following things in the next scripting update but want a general idea of what people need that I might be overlooking that would be useful and simple.

Entity Spawning
Entity's with their basic properties
Basic Block Access & Triggering
Particle Spawning

r553 - Fixing startup issues

Was some bugs due to new jar required to be in the classpath and a reobf issue.

With Maps - http://www.mediafire.com/?5ip72ek44bva8t4
No Maps - http://www.mediafire.com/?e63wn6i5874dc8v

r552 - Start of Scripting and Guns

I've begun to work on scripting today and have some basics in but nothing too sophisticated.  You can use it when you type in chat commands though not much there currently.  This evening didn't feel like continuing on them so then went on and added in guns in about 4 hours.  Here's a video of them in use and already is my most disliked video in 4 months :-p  Anyways not planning to really add more to them.  Just was playing Call of Pripyat this past week and curious to see what people would do if I added them in.

For scripting, the first area you will see it get used is a scripting block.  After that I will be looking at revisiting musical instruments and have them capable of triggering scripts like in OoT or Majora's Mask.  Finally after all that I expect scripting to be well hashed out and work on scripting for NPC's.




  • Adds the starting of scripting. Currently can only be used when typing a text command and not having a / in the front. Only thing you can really do is set or get the time with time.set, time.get, time.setRate, and time.getRate.
  • Fixes crash bug with the lantern in the offhand.
  • Adds a pistol, assault rifle, and shotgun.

Saturday, April 9, 2011

r542 - A bunch of small changes

  • Music blocks no longer mess up if they have an empty name set.
  • Timers can have a delay before triggering upon activation.
  • Armor no longer is damageable.
  • Entities no longer update during cutscenes.
  • The time of day is seperated from world time and the time rate for time of day can be adjusted by weather blocks.
  • Ladders can be freestanding now.
  • Lights bulbs can be have their light value set by right clicking in debug mode on them.
  • Adds a 5th trigger to the mob spawners that activates upon the spawns being killed.
  • Adds a lantern that requires oil to stay lit (lasts 1 minute per unit of oil).
  • Readds back the options for autofarclip and 3d grass.

Wednesday, April 6, 2011

r528 - Updating to 1.4_01

Make sure to delete your bin directory if you are extracting to an existing AdventureCraft install.

  • Updated to 1.4_01.
  • The new light items now cast light when carried.
  • Improved the memory handling of the handheld light sources

Sunday, April 3, 2011

Moving Rope and Chain blockIDs

Forgot to leave space for 3 more blockIDs for chairs so going to move ropes and chains over 3 IDs.  Just a warning that any placed currently will have to change.

r520 - Angry and Tame Wolves plus Bug Fixes

  • New java launchers that should work better for people having issues in Windows.
  • Fixes obfsucation issues (in particular the sliders not working on the palette screen).
  • NPC Stick works again.
  • Can spawn angry and tame wolves from mob spawners now.

r516 - 1.4 plus Ropes & Chains

Decided to release a 1.4 version after testing with the Mayan Temple at least being successful.  Tomorrow will look at releasing another version with looking at lighting plus some other stuff.

  • Upgrades to 1.4.
  • Adds ropes and chains which can be climbed with spacebar if they are vertical and can walk on horizontal ropes/chains.
  • Wolves can also be spawned from the mob spawners.

With Maps - http://www.mediafire.com/?xf97qw87nxbl6aw
No Maps - http://www.mediafire.com/?6yi60em116xlz8e

Saturday, April 2, 2011

1.4 is working but currently testing and adding features

Wasn't too bad getting 1.4 working but currently adding some features before a release and its needs an extensive testing as well.  Ropes and chains are in though and are setup so if you are jumping while on them you go up.  If you hold shift on them then you stop moving.

Items before I release the 1.4 patch

  • Add wolves to mob spawner
  • Refix slimes so they don't split (slime code changed with 1.4)
  • Add new decorative light blocks




Updating to 1.4

Been taking it easy this past week in anticipation of the 1.4 patch.  Anyways MCP finished being updated yesterday to 1.4, so I began working on updating to 1.4 this morning. Currently most the way through updating but just giving an update on the progress.  I will probably release the new version tomorrow morning with some additional decorations in the form of ropes, chains, and additional light objects that can be enabled/disabled via triggers.