Innerspace update

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
gonkulor
GamingTools Subscriber
Posts: 4
Joined: Tue Apr 03, 2007 6:32 pm

Innerspace update

Post by gonkulor » Sun Oct 19, 2008 11:26 pm

Hi all. It seems that after the 10/19/08 update, innerspace makes isxvg stop working. I've posted on that forum and now posting on this one so you all can discuss what you all did. I lost the menu ability drop down in my script. Someone did something that did something else, hehehehe. I just want my sum sum back :)

gonkulor
GamingTools Subscriber
Posts: 4
Joined: Tue Apr 03, 2007 6:32 pm

Post by gonkulor » Sun Oct 19, 2008 11:31 pm

Oh, and BTW the reason I'm posting on this forum is that I lost all keyboard action withing innerspace. nothing... Nadda. nope

gonkulor
GamingTools Subscriber
Posts: 4
Joined: Tue Apr 03, 2007 6:32 pm

Post by gonkulor » Sun Oct 19, 2008 11:34 pm

nvm, I figured it out. :em Smacks head, pulls hair.... stupid stupid, smacks head and pulls more hair, Stupid dumnass. Smacks head again.

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Sun Oct 19, 2008 11:37 pm

So wait, is there an issue or not ;)

Also, some of the LavishGUI updates are incompatible with some existing interfaces, so you may see some missing scrollbars for example until the interfaces are updated.

ACiDXiAN
GamingTools Subscriber
Posts: 8
Joined: Thu Feb 21, 2008 7:06 pm

Post by ACiDXiAN » Mon Oct 20, 2008 12:35 am

the post you fixed in the ISX forums Lax worked fine, the problem arrises on documentation on how the changes to the listboxes are implemented, the biggest break is this sort of line.

Anytime I run a refresh on the listbox using something like this:
just a snippet

Code: Select all

function PopulateList()
{
	variable int i
	/* Form */
	for &#40;i&#58;Set[1] ; $&#123;i&#125; <= $&#123;Me.Form&#125; ; i&#58;Inc&#41;
	&#123;
		UIElement[FormNameCombo@General@MainTabs@MainFrame@Main@AXScript@ACiDScipt]&#58;AddItem[$&#123;Me.Form[$&#123;i&#125;].Name&#125;]
	&#125;
&#125;
it crashes the Innerspace itself and Vanguard all at once and pops up a crash log with the UIElement issue as the primary cause. I think I have the rest of my UI workign but kinda lost on how the new tabcontrol and listboxes work (I assume thats whast crashign this as its crashing only when I try to populate a combobox)

ACiDXiAN
GamingTools Subscriber
Posts: 8
Joined: Thu Feb 21, 2008 7:06 pm

Post by ACiDXiAN » Mon Oct 20, 2008 12:43 am

forgot the UI code that accompanishes this:

Code: Select all

	/* Main GUI */
	<Window Name='ACiDScript' Template='VG.Window'>
		<X>75%</X>
		<Y>35%</Y>
		<Width>250</Width>
		<Height>350</Height>
		<Client Template="VG.Window.Client" />
		<StorePosition>1</StorePosition>
		<Title>[H&#58;$&#123;Me.Health&#125;] ....[$&#123;Script[VGB].Variable[PausedText]&#125;].... [M&#58;$&#123;Me.Energy&#125;]</title>
		<TitleBar template='VG.window.TitleBar'>
			<X>0</X>
			<Y>0</Y>
			<Width>100%</Width>
			<Height>20</Height>
			<Children>
				<Text Name="Title" Template="VG.Window.TitleBar.Title" />
				<Button Name="Minimize" Template="VG.Window.TitleBar.Minimize">
					<X>1</X>
					<Width>16</Width>
					<Height>16</Height>
				</Button>
				<CommandButton name='Custom Close Button' template='VG.Window.TitleBar.Close'>
					<OnLeftClick>
						Script[VGB].Variable[isRunning]&#58;Set[FALSE]
					</OnLeftClick>
				</CommandButton>

			</Children>
		</TitleBar>

		<Children>
			<Tabcontrol Name='AXScript' Template='VG.Tabcontrol'>
				<X>5</X>
				<Y>1</Y>
				<TabHeight>16</TabHeight>
				<TabBorder>1</TabBorder>
				<Height>90%</Height>
				<Width>95%</Width>

				<Tabs>

					<Tab Name='Main'>

						<Frame name='MainFrame'>
							<Height>100%</Height>
							<Width>100%</Width>
							<BackgroundColor>FF000000</BackgroundColor>
							<Texture></Texture>

							<Children>

								<Tabcontrol Name='MainTabs' Template='VG.Tabcontrol'>
									<X>0</X>
									<Y>0</Y>
									<TabHeight>16</TabHeight>
									<TabBorder>1</TabBorder>
									<Height>100%</Height>
									<Width>100%</Width>

									<Tabs>

										<Tab name='General'>


											<Checkbox name='FormNameCheckbox' Template='VG.Checkbox'>
												<X>18</X>
												<Y>210</Y>
												<Width>15</Width>
												<Height>15</Height>
												<Text>Form&#58;</Text>
												<OnLoad>
													if $&#123;Script[VGB].VariableScope.doForm&#125;
													&#123;
													This&#58;SetChecked
													&#125;
												</OnLoad>
												<OnLeftClick>
													Script[VGB].VariableScope.doForm&#58;Set[$&#123;This.Checked&#125;]
												</OnLeftClick>
											</Checkbox>
											<ComboBox Name="FormNameCombo" Template="VG.ComboBox">
												<X>70</X>
												<Y>210</Y>
												<Width>64%</Width>
												<Height>15</Height>
												<OnLoad>
													This&#58;AddItem[NONE]
												</OnLoad>
												<AutoSort>TRUE</AutoSort>
												<OnSelect>
													Script[VGB].VariableScope.FormName&#58;Set["$&#123;This.SelectedItem.Text&#125;"]
												</OnSelect>
											</ComboBox>
										</Tab>

									</Tabs>
								</TabControl>
							</Children>
						</Frame>
					</Tab>
I dunno maybe I got somethign all fubared.. but thats supposed to be a combo box with a populated pulldown with all the forms availible to me. Now it worked proper before the patch today, and I see the controls changed but I can for the life of me figure out the issue. Any ideas or help I hope this isnt the wrong spot to see what the issue was/is with the new stuff, if I can get this working I can UL a fix to ISX but so far.. just crash after crash.

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Mon Oct 20, 2008 1:20 am

I think I have the rest of my UI workign but kinda lost on how the new tabcontrol and listboxes work (I assume thats whast crashign this as its crashing only when I try to populate a combobox)
Err.. nothing changed related to that.

I do have other suggestions related to your UI.

1. CommandButton is deprecated by the OnLeftClick embedded script.
2. You should avoid tying your UI to a specific "skin" -- I can only assume the vG "skin" is not a proper skin, thus the quoting. With a real skin, you would not need to use the Template tag, and your UI could be used with any skin by using the -skin switch on the UI command: e.g. ui -load -skin vgskin myui. The way skinning works is to swap in a set of templates to use, for example to make vg.window.titlebar.title automatically used in place of window.titlebar.title. Then if someone wants to use a different look with your interface, they can. As it stands, I could not, for example, use the WoWSkin with your interface without a load of extra work.
3. You can actually define a set of templates in your UI file that people CAN skin, e.g.

Code: Select all

<template name='acidscript.titlebar' template='window.titlebar'>
  <children>
     .. stuff here
  </children>
</template>
<template name='acidscript.window' template='window'>
   <titlebar template='acidscript.titlebar' />
</template>
.. and so on, and then if someone wanted to, they could re-skin portions of your interface without modifying the actual file... with -skin.

See http://www.lavishsoft.com/wiki/index.ph ... ther_Skins for a download to a properly created skin, and http://www.lavishsoft.com/wiki/index.ph ... o#Download for a download to a well-done set of UI XML files.

Okay back to the issue. Have you reported the crash to me via the reporter? If not, please do so I can see what's going on (I don't see them if you have)

ACiDXiAN
GamingTools Subscriber
Posts: 8
Joined: Thu Feb 21, 2008 7:06 pm

Post by ACiDXiAN » Mon Oct 20, 2008 1:44 am

I will rewrite the GUI with the info you supplied to make it less reliant and more 'skinnable' as I do like that feature to be honest. Just used and was learngin from prior scripts which all used that old style junk. I will rewrite it and see if that fixes my problems beofre I send in reports to you as to not waste you time.

Thank you very much Lax, and hope to post again soon with some success or the like.

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Mon Oct 20, 2008 1:56 am

Great, I am hoping that with the new samples that are well-done, more people will create their interfaces and skins based off of them and, in turn, people who make new things will base their new things off of ones that are done well ;) I should have taken the time to do it long ago, tbh.

I would like to see the crash report either way!

gonkulor
GamingTools Subscriber
Posts: 4
Joined: Tue Apr 03, 2007 6:32 pm

Post by gonkulor » Mon Oct 20, 2008 5:02 am

Holy Cow.... That sounds kinda like the Chicken and Egg conversation. I choose chicken

ACiDXiAN
GamingTools Subscriber
Posts: 8
Joined: Thu Feb 21, 2008 7:06 pm

Post by ACiDXiAN » Mon Oct 20, 2008 9:51 am

Well removed all the templates as a starter and its back to working functionality so somewhere alogn the lines of using a messed up skin code it messed up a lot of the VG stuff. While ugly at its current stage (base UI) its functional, now to get on a proper VG skin to add possibly here when I finish it as to not let WOW have its only competitor being the default ;)


thanks again Lax, I will run an older version and send you some crash logs to show you what was happening.

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Mon Oct 20, 2008 12:17 pm

Great, I would love to be able to show my interfaces with a proper Vanguard skin. :)

Post Reply