[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3906)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3906)
Skyline Forums Skyline Game Engine Community Forums 2013-03-14T12:18:38+01:00 https://forum.aurasoft-skyline.co.uk/feed.php?f=14&t=207 2013-03-14T12:18:38+01:00 2013-03-14T12:18:38+01:00 https://forum.aurasoft-skyline.co.uk/viewtopic.php?t=207&p=1114#p1114 <![CDATA[Re: Setting Up Scene from XML]]>
Thanks :)

Yes, I deliberately left out the first line as it's the Header and I didn't need the info for what I wanted.

Regards

Shando

Statistics: Posted by Shando — 14 Mar 2013, 12:18


]]>
2013-03-14T10:28:17+01:00 2013-03-14T10:28:17+01:00 https://forum.aurasoft-skyline.co.uk/viewtopic.php?t=207&p=1112#p1112 <![CDATA[Re: Setting Up Scene from XML]]>
We have added it to the lua examples folder for the next release and added your credits to the header ;)

I also noticed you set it to miss the first line in the file, was this by design?

Statistics: Posted by StarFire — 14 Mar 2013, 10:28


]]>
2013-03-14T09:58:26+01:00 2013-03-14T09:58:26+01:00 https://forum.aurasoft-skyline.co.uk/viewtopic.php?t=207&p=1110#p1110 <![CDATA[Re: Setting Up Scene from XML]]>

Very tidy code, + good to see the lua tables are working ;)

This will hopefully be useful to many other users as it solves a common problem for many game styles. Thanks again for posting back :D

Statistics: Posted by StarFire — 14 Mar 2013, 09:58


]]>
2013-03-14T01:09:21+01:00 2013-03-14T01:09:21+01:00 https://forum.aurasoft-skyline.co.uk/viewtopic.php?t=207&p=1108#p1108 <![CDATA[Re: Setting Up Scene from XML]]> Statistics: Posted by Shando — 14 Mar 2013, 01:09


]]>
2013-03-13T10:19:53+01:00 2013-03-13T10:19:53+01:00 https://forum.aurasoft-skyline.co.uk/viewtopic.php?t=207&p=1102#p1102 <![CDATA[Re: Setting Up Scene from XML]]> Statistics: Posted by StarFire — 13 Mar 2013, 10:19


]]>
2013-03-13T10:10:38+01:00 2013-03-13T10:10:38+01:00 https://forum.aurasoft-skyline.co.uk/viewtopic.php?t=207&p=1100#p1100 <![CDATA[Re: Setting Up Scene from XML]]> Statistics: Posted by StarFire — 13 Mar 2013, 10:10


]]>
2013-03-13T07:56:06+01:00 2013-03-13T07:56:06+01:00 https://forum.aurasoft-skyline.co.uk/viewtopic.php?t=207&p=1099#p1099 <![CDATA[Re: Setting Up Scene from XML]]> Statistics: Posted by Shando — 13 Mar 2013, 07:56


]]>
2013-03-13T04:29:31+01:00 2013-03-13T04:29:31+01:00 https://forum.aurasoft-skyline.co.uk/viewtopic.php?t=207&p=1098#p1098 <![CDATA[Setting Up Scene from XML]]>
Just wondering if it is possible to set up the Scene when the Game starts via XML?

For example, I would like to set up a board at the start of every Game that is pseudo-random (see this image - ).

The XML file would contain the following data:

x value
y value
z value
type (either Square or Octagon based on 1 = Square & 0 = Octagon)
texture (as a String)

When the XML file is read I would like to create the board based on these values and apply textures to the Squares/Octagons based on the texture parameter. That way I could create several of these files and select which one I want to load randomly at the start of each Game.

Any help would be greatly appreciated.

Regards

Shando

PS: I could also see a use for this for Games like Mahjong
PPS: It doesn't have to be XML, it could be a link to a database (such as SQL) or a CSV file

Statistics: Posted by Shando — 13 Mar 2013, 04:29


]]>