The Gang Garrison 2 Forum
May 24, 2013, 10:26:15 pm *
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 33098 times)
Asdf64
Guest
« Reply #15 on: October 28, 2008, 02: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, 02:09:32 pm by Asdf64 » Logged
ModSlayer
Full Member
***
Offline Offline

Posts: 100


SECOND SENIOR WOOT!


« Reply #16 on: October 28, 2008, 03:59:47 pm »

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

cspotcode
Coder
Administrator
*****
Offline Offline

Posts: 361



« Reply #17 on: October 28, 2008, 05: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
Newbie
*
Offline Offline

Posts: 10


« Reply #18 on: October 28, 2008, 10: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, 10:43:27 pm by Genesis » Logged
cspotcode
Coder
Administrator
*****
Offline Offline

Posts: 361



« Reply #19 on: October 28, 2008, 11: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
*****
Offline Offline

Posts: 361



« Reply #20 on: October 29, 2008, 02: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
*****
Offline Offline

Posts: 165


Miyazaki ftw


« Reply #21 on: October 29, 2008, 06: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
Newbie
*
Offline Offline

Posts: 10


« Reply #22 on: October 29, 2008, 09:46:48 pm »

Make sure you are saving it as the same name as the .png file.
Logged
AnDrEw
Veteran Beta Tester
*****
Offline Offline

Posts: 165


Miyazaki ftw


« Reply #23 on: October 29, 2008, 09: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
Newbie
*
Offline Offline

Posts: 3


« Reply #24 on: October 30, 2008, 03: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:
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
*****
Offline Offline

Posts: 165


Miyazaki ftw


« Reply #25 on: October 30, 2008, 04:37:33 pm »

I used b36d and it worked fine, so maybe that'll work?  Undecided
Logged

Anne drew Andrew and Drew, and Druanne drew Anne, Drew, Andrew, and Ru.
cspotcode
Coder
Administrator
*****
Offline Offline

Posts: 361



« Reply #26 on: October 30, 2008, 05: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
Newbie
*
Offline Offline

Posts: 3


« Reply #27 on: October 30, 2008, 06: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
Newbie
*
Offline Offline

Posts: 10


« Reply #28 on: October 30, 2008, 07: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
*****
Offline Offline

Posts: 165


Miyazaki ftw


« Reply #29 on: October 30, 2008, 08: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 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.158 seconds with 19 queries.