Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Asset Forge

Create your own 3D models and 2D sprites! · By Kenney

Can I share extensions for Asset Forge?

A topic by hippyman created Nov 01, 2020 Views: 254 Replies: 3
Viewing posts 1 to 3
(1 edit)

I offered to help with officially extending the Lua api and that offer was declined. That's perfectly fine and I will respect that. 

BUT

I needed some more Lua functions and since this was made in Unity, with a little know how, it's not too difficult to extend it myself. I've already managed to add the following functions.

forge.getSceneBlockCount
forge.getSceneBlockType
forge.getSceneBlockX/Y/Z
forge.setSceneBlockPosition

and the same four functions but for the current selection rather than all the blocks in a scene.

I'm not trying to do anything more than extend the Lua api. I will personally be using this but I wanted to see if it was okay to share it with the community. It's simply a matter of replacing the Assembly-CSharp.dll with the one I've modified. I won't share how to do this and I won't even share the file if I don't get permission. I've bothered you enough today on Discord so I figured this was the best place.

If you (Kenney) aren't sure how I did this, I'd be glad to show you (and only you) so you can check the actual source code to make sure I'm not doing anything malicious. 

You can't share any files that modified existing files including with Asset Forge. So if you create new files and distribute them as a mod that's totally fine, however you can't take any of the original files (+ modify them) and then distribute them.

I'm pretty sure this is possible. Sounds good. I'll share more once I get something more filled out.

Well unfortunately this doesn't look like I can't do this without some other software to inject it every time I run Asset Forge. If you ever change your mind, I'd be glad to PM you the source I've added. The way you have things setup, it's as simple as dropping in the functions I've added into the Forge class. I wouldn't need anything in return. I just like to help.