The Gang Garrison 2 Forum
May 20, 2013, 09:25:26 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Chat with us on IRC: http://ganggarrison.com/irc.html
Server: irc.esper.net, Channel: #gg2
 
   Home   Help Search Login Register  
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 »
  Print  
Author Topic: Garrison Builder - Cspots Versions (use those for editing the GB)  (Read 33066 times)
cspotcode
Coder
Administrator
*****
Online Online

Posts: 359



« on: October 27, 2008, 09:03:48 pm »

Garrison Builder - Map Editor for Gang Garrison 2

Latest version: v2.1.1

http://launchpad.net/gg2garrisonbuilder/trunk/version2.1.1/+download/GarrisonBuilderv2_1_1.exe

Source code is hosted here: https://github.com/cspotcode/Garrison-Builder

Report bugs here:
https://bugs.launchpad.net/gg2garrisonbuilder

For a quick-start guide to creating maps, run the Garrison Builder and press F1. To edit user options, press F3, and to test your map, press F5.

This post will be updated when new versions of the editor are released.
« Last Edit: March 23, 2012, 03:10:44 pm by Leiche » Logged

"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams
Diglidi-Dude
Guest
« Reply #1 on: October 27, 2008, 09:06:42 pm »

YES
YES
YES
YES
A THOUSAND TIMES YES

Cspostcode, you are fucking awesome.
Logged
stefan
Jr. Member
**
Offline Offline

Posts: 73

maybe i'm a lion


« Reply #2 on: October 27, 2008, 09:08:24 pm »

FUCKING YES YES YES

BETTER THAN SEX
Logged


 TRIPLE KILL
Diglidi-Dude
Guest
« Reply #3 on: October 27, 2008, 09:24:28 pm »

FUCKING YES YES YES

BETTER THAN SEX

Don't be too modest, nothing beats sex.

EDIT: wat
« Last Edit: October 27, 2008, 09:26:44 pm by Diglidi-Dude » Logged
cspotcode
Coder
Administrator
*****
Online Online

Posts: 359



« Reply #4 on: October 27, 2008, 09:45:53 pm »

Oops, forgot about that.  That was a debugging thing.  You can safely ignore that popup.  Try pressing Enter and it should go away.
Logged

"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams
Diglidi-Dude
Guest
« Reply #5 on: October 27, 2008, 09:58:18 pm »

kthxbai
Logged
Ledundead
Jr. Member
**
Offline Offline

Posts: 94

I've only played two PC games: Lemmings, and GG2.


« Reply #6 on: October 27, 2008, 10:20:22 pm »

Sweet! Now I can play Blood Gulch!
Logged

"There's a very fine line between not listening and not caring. I like to think I walk that line every day of my life." The Alpha, aka Private Leonard L. Church
cspotcode
Coder
Administrator
*****
Online Online

Posts: 359



« Reply #7 on: October 27, 2008, 11:18:07 pm »

v1.1 released: Annoying debugging message removed.
Logged

"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams
ModSlayer
Full Member
***
Offline Offline

Posts: 100


SECOND SENIOR WOOT!


« Reply #8 on: October 28, 2008, 06:58:42 am »

Sweet, at least we got a half-ass level editor!
Logged

FinDude
Occasional Zombie Dev
******
Offline Offline

Posts: 139


I live.


« Reply #9 on: October 28, 2008, 07:11:31 am »

Meh, I'm not able to load the maps;
What did I do wrong?

Code:
ERROR in
action number 1
of Key Release Event for <no key> Key
for object CustomMapO:

In script CustomMapInit:
Error in code at line 1:
   // Initializes a custom level

// argument0: filename

{
  // load the background
  background_replace(CustomMapB, argument0, false, false, false);
  background_xscale[0] = 6;
  background_yscale[0] = 6;
 
  // get the leveldata
  var leveldata;
  leveldata = GG2DLL_extract_PNG_leveldata(argument0);
  if(leveldata == "") {
    show_message("Error: this file does not contain level data.");
    break;
  }
  // handle the leveldata
  CustomMapProcessLevelData(leveldata);
}

at position 321: Cannot compare arguments.


ERROR in
action number 1
of Draw Event
for object ScorePanel:

Error in code at line 17:
   
    draw_text_transformed(xoffset+xsize/2-62, yoffset+ysize-30, string(global.redCaps),2,2,0);

at position 80: Unknown variable redCaps



maps folder contains
"Tropic.png", presumably written by the editor.
And "Tropic" the entity file.
Logged

Disclaimer: The above does not mean that I will post again.
cspotcode
Coder
Administrator
*****
Online Online

Posts: 359



« Reply #10 on: October 28, 2008, 07:39:16 am »

Sweet, at least we got a half-ass level editor!

I take offense to that, good sir!

But seriously, this is a preliminary release.  The editor is fully-functional, but the game doesn't fully support the levels it creates.  I fully intend to make the game support these levels, but my life doesn't give me much time for GG2.  Also, if you read the documentation of the level format in the source code, you'll see that it's built to be extensible.  Any new map types or object types can be easily added to the editor as soon as they're added to the game.
Logged

"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams
cspotcode
Coder
Administrator
*****
Online Online

Posts: 359



« Reply #11 on: October 28, 2008, 07:56:18 am »

Meh, I'm not able to load the maps;
What did I do wrong?

maps folder contains
"Tropic.png", presumably written by the editor.
And "Tropic" the entity file.


The second error about redCap is about code that I didn't touch.  It will probably go away if we fix the first error.

Also, the game doesn't need the entity file.  That is only for your convenience while editing.  The entities get embedded in the PNG along with the walkmask.

Would you mind sending me the exact Tropic.png file that you are getting the error with?  I can test using it and, if need be, take a look inside the file to make sure that everything is working correctly.  If you don't want to post it publicly, you can email it to cspotcode AT gmail com.

Also, you can try out this map file which I made and tested in b35:
Logged

"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams
FinDude
Occasional Zombie Dev
******
Offline Offline

Posts: 139


I live.


« Reply #12 on: October 28, 2008, 08:02:31 am »

The testmap does not work either.
Same error.
I deleted the exact Tropic.png, sorry.
You can find the map on the first page of the maps section tough.

EDIT: Every map on b35 errors with the redcaps.
« Last Edit: October 28, 2008, 08:09:45 am by FinDude » Logged

Disclaimer: The above does not mean that I will post again.
Meower
Elder God tier or Fagthulu, the great
Community Manager
*****
Offline Offline

Posts: 21819


Went fat once, never went back


« Reply #13 on: October 28, 2008, 08:05:32 am »

*insert M. Bison here*
Logged

cspotcode
Coder
Administrator
*****
Online Online

Posts: 359



« Reply #14 on: October 28, 2008, 08:34:11 am »

The testmap does not work either.
Same error.
I deleted the exact Tropic.png, sorry.
You can find the map on the first page of the maps section tough.

EDIT: Every map on b35 errors with the redcaps.

Ok, I have a hunch that this is a DLL issue.  I'll work on it.  If you want to talk in the mean time, I'll be on IRC.
Logged

"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.172 seconds with 18 queries.