Welcome, Guest. Please login or register.
May 23, 2012, 09:19:23 AM

Login with username, password and session length
Search:     Advanced search
Sometimes you feel like a nut, sometimes you don't.
109672 Posts in 6137 Topics by 2510 Members
Latest Member: vivahazelbaker
* Home Help Search Calendar Login Register
+  ROME.RO GameTalk
|-+  General
| |-+  Open Discussion (Moderators: ZZT-X, Rizimar)
| | |-+  Anyone Good At Programming and Some basic Hex Editing?
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: 1 [2] Go Down Print
Author Topic: Anyone Good At Programming and Some basic Hex Editing?  (Read 2776 times)
elias3c
GameTalk Core Pal
***
Offline Offline

Posts: 378


The Programmer - Composer

« Reply #15 on: November 01, 2008, 10:51:30 AM »

Oh, btw, I am using it now, and when I try to set a tile directory that includes one grass 24x24 bitmap, it says they aren't any 24x24 images in that folder. What do I do?

EDIT: Nvm, It didn't say anywhere that the image had to be PNG. It's working now. :D
« Last Edit: November 01, 2008, 10:59:17 AM by elias3c » Logged

Quote from: Bruce Lee
"If you put water into a cup, it becomes the cup. You put water into a bottle and it becomes the bottle. You put it in a teapot it becomes the teapot. Now, water can flow or it can crash. Be water my friend."
Compwhiz128
GameTalk Friend
**
Offline Offline

Posts: 124


« Reply #16 on: November 22, 2008, 05:34:17 PM »

how does one write a plugin for said app?
Logged

Bad Sector
Big Fat Code Bastard
Monsterator
Post Monkey
*****
Offline Offline

Posts: 1495


Braaaiins!

WWW
« Reply #17 on: November 25, 2008, 12:06:34 AM »

You download NetBeans, Java SDK, the program's sources and the libraries it needs (basically STTD) and create a new Java Class Library project (or something like that) with a dependency (from project properties -> libraries -> in compile tab select Add Project and select the Mapas project). Once you do that, check the source code of the NameMapExporter plugin to see a simple documented example. You might also want to generate Javadocs from the Mapas source code (right click in the Mapas project and select Generate Javadoc) so see the docs for PluginInterface and PluginUtils. A note btw on the plugin project: you should use the same name for the project, the package and the plugin class. For example the NameMapExporter uses:

Project name: NameMapExporter
Package name: namemapexporter
Plugin class: NameMapExporter

Also to make the IDE copy the plugin .jar file in Mapas folder (so you can test it without copying it manually every time), select the Files tab, and from your plugin's folder open the build.xml file. In there add the following line before the </project> tag:
Code: [Select]
<target name="-post-jar">
    <copyfile src="${dist.jar}" dest="${project.Mapas}/plugins/YourPluginName.jar"/>
</target>
See NameMapExporter's build.xml for an example.
Logged

CRC failed
Pages: 1 [2] Go Up Print 
« previous next »
 

Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!