Aground

Alter Gem Framework for Aground

Released . Ranked 9 of 148 with 28 (1 today) downloads

Created by lybell

altergemframework_thumb.png

This mod is a framework that allows recipes to be added to items that transform items such as Alter gem and Evolution gem. Now you don't have to create new choices or overwrite existing data to implement the transformation into Alter Gem!

Just include this XML in your mod and do the following:

  • make
    <transgem id="alter_gem or evo_gem ..." >
    .
  • like original alter gem, put your alter gem recipe into
    <transgem>
    data.

For example(toothfish into coral cod using alter gem)

<transgem id="alter gem">
    <transform from="toothfish" to="coral_cod" />
</transgem>

Releases

FilenameSizeVersionAddedOptions
alter_gem_framework.1.zip0.74kb1.0.1

alter_gem_framework.zip0.76kb1.0.0

3 comments

Join the community or sign in with your gaming account to join the conversation:

etrotta
etrotta @etrotta

Hello there,
Always nice to see someone new, but I am a bit confused taking a look at your code (or, well, parts of it), for example:
if(alter == null && alter.id != "transform_other")
..which translates to something like
if it **is null** and it **has a property** "id" that isn't "transform other"
...so yeah, I think that you might have swapped these two

Also, I would recommend using <onLoad> instead of the player.init procedure for that. Other than that, good work. It is rare to see someone using haxe and data tags on their first mod xD

Feel free to join the discord if you want to chat about modding, projects or anything. Most of us (aground modders) are there. Discord.gg

lybell
lybell @lybell

Thank you etrotta!

alter == null && alter.id!= "transform_other" is a symple typo.
Originally I intended "If alter is null or if the id of alter is not transform_other".
And <onLoad> is good! This works fine too.

Airom
Airom @airom

I also took a look, same things etrotta said except I think the problem is that is should be ==null and != id, however, it should be an OR statement I think. If it's null it will stop the if statement right there, before checking other conditions. However, with an AND statement, it will look through both ones, and the second one might throw a null object reference