Jump to content
Sign in to follow this  
BullyBoii

Dialog causing game to crash

Recommended Posts

Title says it all, i belive that the game is crashing because of a dialog i have made

There is no script error type message, only "Arma 3 Alpha has stopped working"

here are the code

dialog definitions:

//////////////////////////////////////////////////////////////////
// Function file for Armed Assault
// Created by: Adam Bullock - SOF
//////////////////////////////////////////////////////////////////
#define CT_STATIC 0
#define CT_BUTTON 1
#define CT_EDIT 2
#define CT_SLIDER 3
#define CT_COMBO 4
#define CT_LISTBOX 5
#define CT_TOOLBOX 6
#define CT_CHECKBOXES 7
#define CT_PROGRESS 8
#define CT_HTML 9
#define CT_STATIC_SKEW      10
#define CT_ACTIVETEXT 11
#define CT_TREE 12
#define CT_STRUCTURED_TEXT 13
#define CT_CONTEXT_MENU 14
#define CT_CONTROLS_GROUP 15
#define CT_SHORTCUTBUTTON 16
#define CT_XKEYDESC 40
#define CT_XBUTTON          41
#define CT_XLISTBOX 42
#define CT_XSLIDER 43
#define CT_XCOMBO           44
#define CT_ANIMATED_TEXTURE 45
#define CT_OBJECT 80
#define CT_OBJECT_ZOOM 81
#define CT_OBJECT_CONTAINER 82
#define CT_OBJECT_CONT_ANIM 83
#define CT_LINEBREAK 98
#define CT_ANIMATED_USER 99
#define CT_MAP              100
#define CT_MAP_MAIN 101
#define CT_LISTNBOX 102

// Static styles
#define ST_POS            0x0F
#define ST_HPOS           0x03
#define ST_VPOS           0x0C
#define ST_LEFT           0x00
#define ST_RIGHT          0x01
#define ST_CENTER         0x02
#define ST_DOWN           0x04
#define ST_UP             0x08
#define ST_VCENTER        0x0c

#define ST_TYPE           0xF0
#define ST_SINGLE         0
#define ST_MULTI          16
#define ST_TITLE_BAR      32
#define ST_PICTURE        48
#define ST_FRAME          64
#define ST_BACKGROUND     80
#define ST_GROUP_BOX      96
#define ST_GROUP_BOX2     112
#define ST_HUD_BACKGROUND 128
#define ST_TILE_PICTURE   144
#define ST_WITH_RECT      160
#define ST_LINE           176

#define ST_SHADOW         0x100
#define ST_NO_RECT        0x200 // this style works for CT_STATIC in conjunction with ST_MULTI
#define ST_KEEP_ASPECT_RATIO  0x800

#define ST_TITLE          ST_TITLE_BAR + ST_CENTER

// Slider styles
#define SL_DIR            0x400
#define SL_VERT           0
#define SL_HORZ           0x400

#define SL_TEXTURES       0x10

// Listbox styles
#define LB_TEXTURES       0x10
#define LB_MULTI          0x20

#define FontM             "PuristaMedium"


class RscText
{
access = 0;
colorBackground[] = {0,0,0,0.6};
colorShadow[] = {0,0,0,0.5};
colorText[] = {1,1,1,1};
fixedWidth = 0;
font = FontM;
h = 0.037;
idc = -1;
linespacing = 1;
shadow = 1;
SizeEx = "(	((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
style = 0;
text = "";
type = 0;
w = 0.3;
x = 0;
y = 0;
};

class RscPicture
{
access = 0;
colorBackground[] = {0,0,0,0};
colorText[] = {1,1,1,1};
fixedWidth = 0;
font = FontM;
h = 0.15;
idc = -1;
lineSpacing = 0;
shadow = 0;
sizeEx = 0;
style = 48;
text = "";
type = 0;
w = 0.2;
x = 0;
y = 0;
};

class RscCombo
{
access = 0;
arrowEmpty = "\A3\ui_f\data\GUI\RscCommon\rsccombo\arrow_combo_ca.paa";
arrowFull = "\A3\ui_f\data\GUI\RscCommon\rsccombo\arrow_combo_active_ca.paa";
color[] = {1,1,1,1};
colorActive[] = {1,0,0,1};
colorBackground[] = {0,0,0,1};
colorDisabled[] = {1,1,1,0.25};
colorScrollbar[] = {1,0,0,1};
colorSelect[] = {0,0,0,1};
colorSelectBackground[] = {1,1,1,0.7};
colorText[] = {0.95,0.95,0.95,1};
font = FontM;
h = 0.035;
maxHistoryDelay = 1;
shadow = 0;
sizeEx = "(	((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
soundCollapse[] = {"\A3\ui_f\data\sound\RscCombo\soundCollapse",0.1,1};
soundExpand[] = {"\A3\ui_f\data\sound\RscCombo\soundExpand",0.1,1};
soundSelect[] = {"\A3\ui_f\data\sound\RscCombo\soundSelect",0.1,1};
style = 16;
type = 4;
w = 0.12;
wholeHeight = 0.45;
x = 0;
y = 0;

class ScrollBar
{
	arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
	arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
	border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
	color[] = {1,1,1,0.6};
	colorActive[] = {1,1,1,1};
	colorDisabled[] = {1,1,1,0.3};
	shadow = 0;
	thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
};
};

dialog

//////////////////////////////////////////////////////////////////
// Function file for Armed Assault
// Created by: Adam Bullock - SOF
//////////////////////////////////////////////////////////////////

class BULL_spawnTeleport
{
idd = 1;
controls[] = {BULL_main_unitList, BULL_main_buttonSelect, BULL_main_buttonCancel, BULL_main_MAP};
controlsBackground = {BULL_background, BULL_infoHeader, BULL_main_infoText1, BULL_infoFooter};
movingEnabled = 1;
enableSimulation = 1;

class BULL_background: RscText
{
	idc = 1000;
	x = 0.5 * GUI_GRID_W + GUI_GRID_X;
	y = 0.5 * GUI_GRID_H + GUI_GRID_Y;
	w = 39 * GUI_GRID_W;
	h = 24 * GUI_GRID_H;
	colorBackground[] = {0,0,0,0.6};
};
class BULL_infoHeader: RscText
{
	idc = 1001;
	text = "=101AD= Spawn Teleport --- Made by =101AD=PFC.Bull.A"; //--- ToDo: Localize;
	x = 0.5 * GUI_GRID_W + GUI_GRID_X;
	y = 0.5 * GUI_GRID_H + GUI_GRID_Y;
	w = 39 * GUI_GRID_W;
	h = 1.5 * GUI_GRID_H;
	colorBackground[] = {0,0,0,1};
};
class BULL_main_infoText1: RscText
{
	idc = 1002;
	text = "Please select a unit to teleport to from the list below:"; //--- ToDo: Localize;
	x = 0.5 * GUI_GRID_W + GUI_GRID_X;
	y = 4 * GUI_GRID_H + GUI_GRID_Y;
	w = 39 * GUI_GRID_W;
	h = 1.5 * GUI_GRID_H;
	colorBackground[] = {0,0,0,1};
};
class BULL_main_unitList: RscCombo
{
	idc = 2100;
	x = 13 * GUI_GRID_W + GUI_GRID_X;
	y = 7.5 * GUI_GRID_H + GUI_GRID_Y;
	w = 14 * GUI_GRID_W;
	h = 1 * GUI_GRID_H;
	tooltip = "Select a unit to teleport to"; //--- ToDo: Localize;
};
class BULL_main_buttonSelect: RscButton
{
	idc = 1600;
	text = "Select"; //--- ToDo: Localize;
	x = 24 * GUI_GRID_W + GUI_GRID_X;
	y = 19.5 * GUI_GRID_H + GUI_GRID_Y;
	w = 5 * GUI_GRID_W;
	h = 2.5 * GUI_GRID_H;
};
class BULL_main_buttonCancel: RscButton
{
	idc = 1601;
	text = "Cancel"; //--- ToDo: Localize;
	x = 11 * GUI_GRID_W + GUI_GRID_X;
	y = 19.5 * GUI_GRID_H + GUI_GRID_Y;
	w = 5 * GUI_GRID_W;
	h = 2.5 * GUI_GRID_H;
};
class BULL_main_MAP: RscPicture
{
	idc = 1200;
	text = "#(argb,8,8,3)color(1,1,1,1)";
	x = 11 * GUI_GRID_W + GUI_GRID_X;
	y = 9.5 * GUI_GRID_H + GUI_GRID_Y;
	w = 18 * GUI_GRID_W;
	h = 9 * GUI_GRID_H;
};
class BULL_infoFooter: RscText
{
	idc = 1003;
	text = "Arma 3 =101AD= Spawn Teleportation Script -- EULA 101stScreamingEagles.com"; //--- ToDo: Localize;
	x = 0.5 * GUI_GRID_W + GUI_GRID_X;
	y = 23 * GUI_GRID_H + GUI_GRID_Y;
	w = 39 * GUI_GRID_W;
	h = 1.5 * GUI_GRID_H;
	colorBackground[] = {0,0,0,1};
};
};

description.ext code

respawn = 3;
respawnDelay = 5;
disabledAI = 1;
aiKills = 0;

class Header
{
gametype = "101AD"
minplayers = 1;
maxplayers = 50;
};



#include "custom\dialog\DEFINES.hpp"
#include "custom\dialog\BULL_spawnTeleport.hpp"

Any help is greatly appreciated

Thank you,

Adam

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×