December 05, 2023, 03:06:24 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 ... 4 5 [6]

Author Topic: The newest _working_ Garrison Builder version.  (Read 31498 times)

Volcano

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: The newest _working_ Garrison Builder version.
« Reply #75 on: December 24, 2012, 08:38:44 am »

___________________________________________
COMPILATION ERROR in Script: CustomMapInit
Error in code at line 19:
     leveldata = GG2DLL_extract_PNG_leveldata(argument0);
                                                       ^
at position 54: Wrong number of arguments to function or script.

It seems that the GG2DLL was updated. That function takes 2 arguments rather than 1.
should be

Code: [Select]
// get the leveldata
  var leveldata, tempfile;
  tempfile = temp_directory+"\custommap_walkmask.png";
  leveldata = GG2DLL_extract_PNG_leveldata(argument0, tempfile);

  if(leveldata == "") {
    show_message("Error: this file does not contain level data.");
    break;
  }

As it is in the game itself not sure if that function is called elsewhere..
Logged

Derpduck

  • Moderator
  • *****
  • Karma: 42
  • Offline Offline
  • Posts: 5770
Re: The newest _working_ Garrison Builder version.
« Reply #76 on: December 24, 2012, 08:44:18 am »

Are you trying to mod it?

Volcano

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: The newest _working_ Garrison Builder version.
« Reply #77 on: December 24, 2012, 08:51:11 am »

Of course. Adding several custom entities to tie a mod all together.
Logged

Derpduck

  • Moderator
  • *****
  • Karma: 42
  • Offline Offline
  • Posts: 5770
Re: The newest _working_ Garrison Builder version.
« Reply #78 on: December 24, 2012, 08:52:13 am »

I'll see if I can find the old extention.

Volcano

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: The newest _working_ Garrison Builder version.
« Reply #79 on: December 24, 2012, 08:53:19 am »

Thanks. For now it seems to be working.
Logged

Derpduck

  • Moderator
  • *****
  • Karma: 42
  • Offline Offline
  • Posts: 5770
Re: The newest _working_ Garrison Builder version.
« Reply #80 on: December 24, 2012, 08:56:41 am »

This should be the correct one, though it has the exact same name as the previous one, which means you will have to change it again when you mod GG2.
https://dl.dropbox.com/s/wnz7agnlacylpxl/GG2DLLext.gex?dl=1

Lord SecretMan

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 511
  • Idiot.
Re: The newest _working_ Garrison Builder version.
« Reply #81 on: May 30, 2013, 09:53:38 am »

« Last Edit: May 31, 2013, 03:13:57 pm by Lord SecretMan »
Logged

Derpduck

  • Moderator
  • *****
  • Karma: 42
  • Offline Offline
  • Posts: 5770
Re: The newest _working_ Garrison Builder version.
« Reply #82 on: April 02, 2014, 01:28:28 pm »

Is someone going to update this to include dropdown platforms? Or should I work on it?
Pages: 1 ... 4 5 [6]
 

Page created in 0.03 seconds with 36 queries.