<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[LuaPlus: eine Tabelle in einer Tabelle]]></title><description><![CDATA[<p>Bin erst vor kurzen auf LuaPlus gestoßen und da es nur relativ wenig tut gib habe ich jezt schon ein kleines Problem.<br />
Im Prinzib würde ich gerne in c++ eine Tabele erstellen die in sich noch eine Tabelle besitzt, also wie ein 2 dim Array.<br />
Wenn ich z.B. Tabelle1 &amp; Tabelle2 anlege und dann Tabelle2 in Tabelle1 einfüge(mit SetObject oder AssigneObject) stürzt das Prog ab.</p>
<pre><code class="language-cpp">LuaState * pState = g_pApp-&gt;m_pLuaStateManager-&gt;GetGlobalState().Get();

Tabelle1.AssignNewTable( pState );
Tabelle2.AssignNewTable( pState );

Tabelle1.AssignObject((LuaObject&amp;) Tabelle2);
</code></pre>
<p>Im script sollte es dann so aussehen: Tabelle1.Tabelle2.valueA</p>
<p>Vielen dank fürs helfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/300554/luaplus-eine-tabelle-in-einer-tabelle</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 20:11:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/300554.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Mar 2012 15:36:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LuaPlus: eine Tabelle in einer Tabelle on Mon, 05 Mar 2012 15:36:40 GMT]]></title><description><![CDATA[<p>Bin erst vor kurzen auf LuaPlus gestoßen und da es nur relativ wenig tut gib habe ich jezt schon ein kleines Problem.<br />
Im Prinzib würde ich gerne in c++ eine Tabele erstellen die in sich noch eine Tabelle besitzt, also wie ein 2 dim Array.<br />
Wenn ich z.B. Tabelle1 &amp; Tabelle2 anlege und dann Tabelle2 in Tabelle1 einfüge(mit SetObject oder AssigneObject) stürzt das Prog ab.</p>
<pre><code class="language-cpp">LuaState * pState = g_pApp-&gt;m_pLuaStateManager-&gt;GetGlobalState().Get();

Tabelle1.AssignNewTable( pState );
Tabelle2.AssignNewTable( pState );

Tabelle1.AssignObject((LuaObject&amp;) Tabelle2);
</code></pre>
<p>Im script sollte es dann so aussehen: Tabelle1.Tabelle2.valueA</p>
<p>Vielen dank fürs helfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2188764</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2188764</guid><dc:creator><![CDATA[zwingling]]></dc:creator><pubDate>Mon, 05 Mar 2012 15:36:40 GMT</pubDate></item><item><title><![CDATA[Reply to LuaPlus: eine Tabelle in einer Tabelle on Mon, 05 Mar 2012 15:50:02 GMT]]></title><description><![CDATA[<p>Du willst in einer Tabellenzelle eine Tabelle einfügen, oder wie ist das gemeint?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2188770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2188770</guid><dc:creator><![CDATA[Thuruk]]></dc:creator><pubDate>Mon, 05 Mar 2012 15:50:02 GMT</pubDate></item><item><title><![CDATA[Reply to LuaPlus: eine Tabelle in einer Tabelle on Mon, 05 Mar 2012 16:09:05 GMT]]></title><description><![CDATA[<p>Ja eigentlich schon.<br />
Etwas schwer zum erklären aber in etwa so:</p>
<p>Haushalt A<br />
{<br />
Name = &quot;Hannes&quot;<br />
Id = 10<br />
Param:<br />
Geld = 100<br />
Frau = &quot;Anna&quot;<br />
Kinder = 2<br />
}</p>
<p>A.Param.Geld = 20</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2188777</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2188777</guid><dc:creator><![CDATA[zwingling]]></dc:creator><pubDate>Mon, 05 Mar 2012 16:09:05 GMT</pubDate></item><item><title><![CDATA[Reply to LuaPlus: eine Tabelle in einer Tabelle on Mon, 05 Mar 2012 16:29:40 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;

struct Haushalt
{
    std::string name;
    unsigned char id;
    unsigned char geld;
    std::string frau;
    unsigned char kinder;
}

//...

int main()
{
    Haushalt *Liste;
	Liste=new Haushalt [1];
	Liste[0].frau=&quot;Anne&quot;;
    //...
}
</code></pre>
<p>Oder gleich mit Klasse. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2188788</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2188788</guid><dc:creator><![CDATA[Thuruk]]></dc:creator><pubDate>Mon, 05 Mar 2012 16:29:40 GMT</pubDate></item><item><title><![CDATA[Reply to LuaPlus: eine Tabelle in einer Tabelle on Mon, 05 Mar 2012 16:41:44 GMT]]></title><description><![CDATA[<p>Verfehlt leider das Ziel etwas. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Also versuch ich es noch einmal zu erklären.<br />
Grundsätzlich soll ein Event System verwiklicht werden und ein script soll zugriff auf das EventData Objekt haben, welches in c++ ich mit hilfe von LuaPlus erstellen muss. Also muss ich die von dir oben gennante structur als ein LuaObject anlegen... sehr verwirrend gg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2188794</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2188794</guid><dc:creator><![CDATA[zwingling]]></dc:creator><pubDate>Mon, 05 Mar 2012 16:41:44 GMT</pubDate></item><item><title><![CDATA[Reply to LuaPlus: eine Tabelle in einer Tabelle on Mon, 05 Mar 2012 16:47:40 GMT]]></title><description><![CDATA[<p>Und du kannst nicht einfach ein Array dieser Objekte erstellen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2188796</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2188796</guid><dc:creator><![CDATA[Thuruk]]></dc:creator><pubDate>Mon, 05 Mar 2012 16:47:40 GMT</pubDate></item><item><title><![CDATA[Reply to LuaPlus: eine Tabelle in einer Tabelle on Mon, 05 Mar 2012 17:00:36 GMT]]></title><description><![CDATA[<p>Seit wann gibts Objekte in Lua?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2188807</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2188807</guid><dc:creator><![CDATA[ZeroXCola]]></dc:creator><pubDate>Mon, 05 Mar 2012 17:00:36 GMT</pubDate></item><item><title><![CDATA[Reply to LuaPlus: eine Tabelle in einer Tabelle on Mon, 05 Mar 2012 17:13:42 GMT]]></title><description><![CDATA[<p>Okey war eindeutig der falsche ausdruck.</p>
<p>Hier einmal das \1:</p>
<p>//////////////////////////////////////////////////////////////////////</p>
<p>--Define the listener function.<br />
function Update( eventData )<br />
print(&quot;New Actor Created:\n&quot; )<br />
print(&quot; ID = &quot;.. eventData.ActorId )<br />
print(&quot; Name = &quot;.. <a href="http://eventData.Params.Name" rel="nofollow">eventData.Params.Name</a> )<br />
print(&quot; Size = &quot;.. eventData.Params.Size )<br />
end</p>
<p>EventManager:AddScriptListener( &quot;new_actor&quot;, Update )</p>
<p>//////////////////////////////////////////////////////////////////////</p>
<p>Die eventData wird eben in c++ angelegt. ActorId ausgeben funktioniert aber wie das mit den Params funktioniert weiß ich nicht -.-<br />
Weiters sind die Params für jeden Actor verschieden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2188813</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2188813</guid><dc:creator><![CDATA[zwingling]]></dc:creator><pubDate>Mon, 05 Mar 2012 17:13:42 GMT</pubDate></item></channel></rss>