December 01, 2021, 04:29:53 pm

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 4 ... 13

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

Asdf64

  • Guest
Re: Garrison Builder - Latest Version
« Reply #15 on: October 28, 2008, 01:02:18 pm »

Note: The game can now load these levels for single-player testing only.  See the development organization thread for details.

Garrison Builder - Map Editor for Gang Garrison 2

Latest version: v1.1

https://code.launchpad.net/gg2garrisonbuilder/+download

Browse the source code here: http://bazaar.launchpad.net/~cspotcode/gg2garrisonbuilder/trunk/files

I'll add info about downloading the source using Bazaar later.  Basically, if you set up a Launchpad account, you can create your own branch of the code and add new features or improvements.  Then, your version can be merged into the official code.  Check out launchpad here: https://launchpad.net/

HELL YES. MY LIFE HAS A PURPOSE NOW.

Er wait, nevermind, it doesn't. Doesn't work.
« Last Edit: October 28, 2008, 01:09:32 pm by Asdf64 »
Logged

ModSlayer

  • Junior Member
  • **
  • Karma: -29
  • Offline Offline
  • Posts: 100
  • SECOND SENIOR WOOT!
Re: Garrison Builder - Latest Version
« Reply #16 on: October 28, 2008, 02:59:47 pm »

How do you scroll the map? For now Ill I see is my corner...
Logged

cspotcode

  • Coder
  • Administrator
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: Garrison Builder - Latest Version
« Reply #17 on: October 28, 2008, 04:33:00 pm »

HELL YES. MY LIFE HAS A PURPOSE NOW.

Er wait, nevermind, it doesn't. Doesn't work.

Easy there.  I did say this was a preliminary release.  I'm still working out the kinks.  I couldn't have discovered these problems on my own, since they don't happen on my computer.

How do you scroll the map? For now Ill I see is my corner...
Scroll by dragging with the right-mouse button or pressing the arrow keys.
Logged
"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams

Genesis

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: Garrison Builder - Latest Version
« Reply #18 on: October 28, 2008, 09:08:43 pm »

Nice job, this should help some people, though in game after getting the map to work, it seemed like the whole map was "solid," and I couldn't move out of the exact spot where I spawned.
« Last Edit: October 28, 2008, 09:43:27 pm by Genesis »
Logged

cspotcode

  • Coder
  • Administrator
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: Garrison Builder - Latest Version
« Reply #19 on: October 28, 2008, 10:53:58 pm »

Nice job, this should help some people, though in game after getting the map to work, it seemed like the whole map was "solid," and I couldn't move out of the exact spot where I spawned.

Was the pixel in the lower left corner the same color as the parts of the walkmask that represent open space (not walls)?  In the editor, you can toggle walkmask visibility on and off to make sure it's working correctly.
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 #20 on: October 29, 2008, 01:18:02 am »

Problem (should be) solved.  Get v1.2, as well as the updated game download (b35, not b36).

It was a DLL issue.  The same problem happened on my friend's computer, and I fixed it by switching to static linking of the Microsoft VC runtime.
Logged
"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams

AnDrEw

  • Veteran Beta Tester
  • *****
  • Karma: 11
  • Offline Offline
  • Posts: 165
  • Miyazaki ftw
Re: Garrison Builder - Latest Version
« Reply #21 on: October 29, 2008, 05:31:07 pm »

This is totally incredible...

I didn't have much time, but I made this:



[attachment deleted by admin]
Logged
Anne drew Andrew and Drew, and Druanne drew Anne, Drew, Andrew, and Ru.

Genesis

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: Garrison Builder - Latest Version
« Reply #22 on: October 29, 2008, 08:46:48 pm »

Make sure you are saving it as the same name as the .png file.
Logged

AnDrEw

  • Veteran Beta Tester
  • *****
  • Karma: 11
  • Offline Offline
  • Posts: 165
  • Miyazaki ftw
Re: Garrison Builder - Latest Version
« Reply #23 on: October 29, 2008, 08:54:12 pm »

Yeah.
Basically you load the background, the wallmask, and then put in the spawns and such.
Then, save the info into the background file, hit save and then click on your background file.  It will save the level data inside that background file, which is then a lvl file.  You can load that file by putting it into the maps subfolder of the GG2 folder, load map 10, etc...
Logged
Anne drew Andrew and Drew, and Druanne drew Anne, Drew, Andrew, and Ru.

jujyfruit

  • New Member
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 3
Re: Garrison Builder - Latest Version
« Reply #24 on: October 30, 2008, 02:29:23 pm »

I got the updated versions of the editor and b35, but I still get redcap (and only redcap) errors.

I just made a tiny little arena to test the editor out:



Is the error my fault? Have I not made the level correctly?

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 Begin Step Event
for object GameServer:

Error in code at line 280:
   if global.redCaps ==global.caplimit || global.blueCaps ==global.caplimit && global.mapchanging==0

at position 12: Unknown variable redCaps

___________________________________________
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
Logged

AnDrEw

  • Veteran Beta Tester
  • *****
  • Karma: 11
  • Offline Offline
  • Posts: 165
  • Miyazaki ftw
Re: Garrison Builder - Latest Version
« Reply #25 on: October 30, 2008, 03:37:33 pm »

I used b36d and it worked fine, so maybe that'll work?  :-\
Logged
Anne drew Andrew and Drew, and Druanne drew Anne, Drew, Andrew, and Ru.

cspotcode

  • Coder
  • Administrator
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: Garrison Builder - Latest Version
« Reply #26 on: October 30, 2008, 04:12:16 pm »

Yeah, I'm almost positive that your problem is caused by the DLL issue, which is fixed and included in 36d.
Logged
"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams

jujyfruit

  • New Member
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 3
Re: Garrison Builder - Latest Version
« Reply #27 on: October 30, 2008, 05:03:26 pm »

Thanks guys, I misunderstood cspotcode's "Get ... the updated game download (b35, not b36)" from an earlier post.

b36d fixed the problem.
Logged

Genesis

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: Garrison Builder - Latest Version
« Reply #28 on: October 30, 2008, 06:54:00 pm »

Nice job, this should help some people, though in game after getting the map to work, it seemed like the whole map was "solid," and I couldn't move out of the exact spot where I spawned.

Was the pixel in the lower left corner the same color as the parts of the walkmask that represent open space (not walls)?  In the editor, you can toggle walkmask visibility on and off to make sure it's working correctly.

No. It still won't let me get out.
Logged

AnDrEw

  • Veteran Beta Tester
  • *****
  • Karma: 11
  • Offline Offline
  • Posts: 165
  • Miyazaki ftw
Re: Garrison Builder - Latest Version
« Reply #29 on: October 30, 2008, 07:06:54 pm »

Genesis, re-do the level aspect (inserting spawns, etc.)
make sure that your spawn guy isn't touching any walls on the wallmask.
Logged
Anne drew Andrew and Drew, and Druanne drew Anne, Drew, Andrew, and Ru.
Pages: 1 [2] 3 4 ... 13
 

Page created in 0.059 seconds with 35 queries.