Jump to content
Sign in to follow this  
lucilk

need help with Respawn dialog

Recommended Posts

i need some help with a script please.

The script is a dialog from here and its like a respawn menu.

The dialog works fine but... it gives me a error when it starts

this is from my arma.rpt

Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnList.ScrollBar'.
Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnList.autoScrollRewind'.
Warning Message: '/' is not a value
Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnList.autoScrollDelay'.
Warning Message: '/' is not a value
Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnList.autoScrollSpeed'.
Warning Message: '/' is not a value
Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnList.maxHistoryDelay'.
Warning Message: '/' is not a value
Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnMap.colorOutside'.
Warning Message: Size: '/' not an array
Warning Message: Size: '/' not an array
Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnMap.colorRailWay'.
Warning Message: Size: '/' not an array
Warning Message: Size: '/' not an array
Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnMap.maxSatelliteAlpha'.
Warning Message: '/' is not a value
Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnMap.alphaFadeStartScale'.
Warning Message: '/' is not a value
Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnMap.alphaFadeEndScale'.
Warning Message: '/' is not a value
Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnMap.Task'.
Warning Message: No entry '.icon'.
Warning Message: '/' is not a value
Warning Message: No entry '.color'.
Warning Message: Size: '/' not an array
Warning Message: Size: '/' not an array
Warning Message: No entry '.size'.
Warning Message: '/' is not a value
Warning Message: No entry '.coefMin'.
Warning Message: '/' is not a value
Warning Message: No entry '.coefMax'.
Warning Message: '/' is not a value
Warning Message: No entry '.importance'.
Warning Message: '/' is not a value
Warning Message: No entry '.iconCreated'.
Warning Message: '/' is not a value
Warning Message: No entry '.iconCanceled'.
Warning Message: '/' is not a value
Warning Message: No entry '.iconDone'.
Warning Message: '/' is not a value
Warning Message: No entry '.iconFailed'.
Warning Message: '/' is not a value
Warning Message: No entry '.colorCreated'.
Warning Message: Size: '/' not an array
Warning Message: Size: '/' not an array
Warning Message: No entry '.colorCanceled'.
Warning Message: Size: '/' not an array
Warning Message: Size: '/' not an array
Warning Message: No entry '.colorDone'.
Warning Message: Size: '/' not an array
Warning Message: Size: '/' not an array
Warning Message: No entry '.colorFailed'.
Warning Message: Size: '/' not an array
Warning Message: Size: '/' not an array
Warning Message: No entry 'mpmissions\__cur_mp.utes\description.ext/SPWN_RespawnDialog/SPWN_RespawnMap.CustomMark'.
Warning Message: No entry '.icon'.
Warning Message: '/' is not a value
Warning Message: No entry '.color'.
Warning Message: Size: '/' not an array
Warning Message: Size: '/' not an array
Warning Message: No entry '.size'.
Warning Message: '/' is not a value
Warning Message: No entry '.coefMin'.
Warning Message: '/' is not a value
Warning Message: No entry '.coefMax'.
Warning Message: '/' is not a value
Warning Message: No entry '.importance'.
Warning Message: '/' is not a value
Warning Message: Variable 'spwn_display' does not support serialization and should not be stored in the mission namespace.
Warning Message: Variable '_control' does not support serialization. Call 'disableSerialization' in the current script (maybe 'mpmissions\__cur_mp.utes\Dialogs\Respawn_Dialog.sqf') if you need to use it.
Creating debriefing
ErrorMessage: File C:\Users\Lucian\Documents\ArmA 2\missions\TEST-DIALOG.utes\Dialogs\Respawn_Dialog.hpp, line 0: .SPWN_Button: Undefined base class 'RscButton'

and here is a download link for the dialog

can anyone tell me how can i fix it, how can i fix the error, please

aaaa, i forgot to mention this is a arma 1 script

Edited by lucilk

Share this post


Link to post
Share on other sites

This is how arrays needs look like:

array[] = {"value1","value"};

In addition it seems the dialog is missing various values.

Best is to copy a base class from BI definitions and inherit

from it.

Share this post


Link to post
Share on other sites

aha............

I have no ideea what you just said :|, but.... i saw something in a dialog

class BusStop {

icon = "\ca\ui\data\map_busstop_ca.paa";

color[] = {0, 0, 1, 1};

size = 10;

importance = 1 * 10 * 0.05;

coefMin = 0.25;

coefMax = 4;

i dont have any \ca\ui\data\ path in my CA addon so i think i might have something to

do with ARMA 1- ARMA 2 . i gues.... i am not good with dialogs and gui stuff, so.... i

realy need some help

Share this post


Link to post
Share on other sites

That old Arma 1 template is very ugly, so here's a new ported Respawn Dialog Template for Arma 2.

Replace old files as needed and add new ones.

The respawn list, which needs to be edited specific to your mission, is now separated into a small file: RespawnList.sqf

_list =
[ // [spawn description, marker name]
 ["1 - Base", "RespawnWest"],
 ["2 - Radio tower", "m_WestSpawn2"],
 ["3 - Heli-pad", "m_WestSpawn3"],
 ["4 - Gate house", "m_WestSpawn4"],
 ["5 - Field hospital", "m_WestSpawn5"]
];

_list // return value

th_RespawnDialog1_Arma2.jpg

Download: <removed old download - see post below for new one>

(Warning: Do not include this dialog inside any public addon, unless you first change all ICE prefix tags to use your own tag.)

This version is simplified, but with a few tweaks it can also support:

* 2 sides

* mobile spawn points (vehicles, leaders, etc)

* LHD spawning (above water)

* movable spawn points (Rally points, deployable camps)

* location icons for list box

* if you don't like loops (like in init.sqf), you can use a "killed" event handler instead

* In this example, each crate also has an action called "Base deployment..." for manual teleport. Just delete the crates if you don't need that.

@kju: That pastebin extract needs updating for v1.03 (class Task).

(The Berzerk GUI code lines are concatenated, so it's unreadable.)

Edited by Dr_Eyeball

Share this post


Link to post
Share on other sites

That's better looking than ArmA1 for sure, but I absolutely love the new ArmA2 dialog style as seen in CameraScript. Hopefully people start to use that as a standard. :)

Share this post


Link to post
Share on other sites

ooooooh i am so excited , i am going to try this now

thx Dr_Eyeball!

---------- Post added at 04:17 PM ---------- Previous post was at 03:33 PM ----------

Dr_Eyeball this piece of script is great for what i need :D, thx man, thx a lot and just one more thing:

how can i modify the appereance of the window, meaning colour size i have no ideea what language is in dialog.hpp.

If u can that is.

Thx again.

---------- Post added at 04:19 PM ---------- Previous post was at 04:17 PM ----------

i want to make it smaler and blue :D, that will be great

---------- Post added at 04:35 PM ---------- Previous post was at 04:19 PM ----------

ok i found out how to modify the colors but i dont know how to modify the window size and text size

Share this post


Link to post
Share on other sites

Changing Window Size:

I've uploaded an update (rc2).

Download: Respawn_dialog_rc2.Chernarus.pbo.

Main file changed was: Respawn_Dialog.hpp

  • The window can now be dragged around.
  • The window size can now be controlled via 4 #define constants (and doesn't have to be centred on screen):

#define SPWN_X 0.20
#define SPWN_Y 0.20
#define SPWN_W 0.70
#define SPWN_H 0.50

Changing Text Size:

It's a little tricky. In these projects, the text size is controlled using

#define Dlg_ROWS 36 // determines default text and control height

This changes every control automatically. The dialog project is designed for a consistent looking GUI.

However depending on the control's position/purpose, you can but it's not easy to change just one control, unless you redefine all of it's properties, such as: sizeEx & h, plus final alignment: x, y, w and possibly any bordering controls.

Share this post


Link to post
Share on other sites

Dr_Eyeball, i dont know but this dialog was maibe the only thing i know i cant do it so thx again.

i modified the colors and and i will change the size, but still.... this is great anyway.

now the only thing left to find is a NUCLEAR Bomb, i read somewhere that there is allready one built for arma 1 maibe i can port it in arma 2.

Share this post


Link to post
Share on other sites

What a cool script. But i got a error saying "createDialog failed" and "Resource SPWN_RespawnDialog not found"

What did i do wrong?

Edit: Or at least sometimes. Got rid of it, by saving i think.

Edited by MugAben

Share this post


Link to post
Share on other sites

Nah, i didnt. Wierd, it works in MP on local, and in the editor. But when running from dedicated it wont! Any tips?

Share this post


Link to post
Share on other sites

hey, you meantioned that this could be used to spawn on the LHD right?

i am making a mission that requires multiple spawn points and the LHD is one of them, mind pointing me in the right direction?

oh and thanks for that script, im sure ill use it alot!

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  

×