August 02, 2021, 09:34:27 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1] 2 3 ... 13

Author Topic: Garrison Builder - Cspots Versions (use those for editing the GB)  (Read 52053 times)

cspotcode

  • Coder
  • Administrator
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411

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, 02: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
Re: Garrison Builder - Latest Version
« Reply #1 on: October 27, 2008, 08:06:42 pm »

YES
YES
YES
YES
A THOUSAND TIMES YES

Cspostcode, you are fucking awesome.
Logged

stefan

  • Junior Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 73
  • maybe i'm a lion
Re: Garrison Builder - Latest Version
« Reply #2 on: October 27, 2008, 08:08:24 pm »

FUCKING YES YES YES

BETTER THAN SEX
Logged

 TRIPLE KILL

Diglidi-Dude

  • Guest
Re: Garrison Builder - Latest Version
« Reply #3 on: October 27, 2008, 08: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, 08:26:44 pm by Diglidi-Dude »
Logged

cspotcode

  • Coder
  • Administrator
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: Garrison Builder - Latest Version
« Reply #4 on: October 27, 2008, 08: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
Re: Garrison Builder - Latest Version
« Reply #5 on: October 27, 2008, 08:58:18 pm »

kthxbai
Logged

Ledundead

  • Junior Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 94
  • I've only played two PC games: Lemmings, and GG2.
Re: Garrison Builder - Latest Version
« Reply #6 on: October 27, 2008, 09: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
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: Garrison Builder - Latest Version
« Reply #7 on: October 27, 2008, 10: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

  • Junior Member
  • **
  • Karma: -29
  • Offline Offline
  • Posts: 100
  • SECOND SENIOR WOOT!
Re: Garrison Builder - Latest Version
« Reply #8 on: October 28, 2008, 05:58:42 am »

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

FinDude

  • Occasional Zombie Dev
  • ******
  • Karma: 12
  • Offline Offline
  • Posts: 139
  • I live.
Re: Garrison Builder - Latest Version
« Reply #9 on: October 28, 2008, 06:11:31 am »

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

Code: [Select]
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
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: Garrison Builder - Latest Version
« Reply #10 on: October 28, 2008, 06: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
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: Garrison Builder - Latest Version
« Reply #11 on: October 28, 2008, 06: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
  • ******
  • Karma: 12
  • Offline Offline
  • Posts: 139
  • I live.
Re: Garrison Builder - Latest Version
« Reply #12 on: October 28, 2008, 07: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, 07: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
  • *****
  • Karma: 230
  • Offline Offline
  • Posts: 23894
  • Went fat once, never went back
Re: Garrison Builder - Latest Version
« Reply #13 on: October 28, 2008, 07:05:32 am »

*insert M. Bison here*
Logged

cspotcode

  • Coder
  • Administrator
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: Garrison Builder - Latest Version
« Reply #14 on: October 28, 2008, 07: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 ... 13
 

Page created in 0.032 seconds with 35 queries.