<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
    <channel>
        <title>Acryptid's site</title>
        <link>http://www.byond.com/members/Acryptid</link>
        <description></description>
        <lastBuildDate>Fri, 10 Feb 2012 23:58:23 +0000</lastBuildDate>
        <language>en-us</language>
    
                <item>
            <title>How to Save Created Mob's Loc?</title>
            <link>http://www.byond.com/members/Acryptid?command=view_post&amp;post=158559</link>
            <guid>http://www.byond.com/members/Acryptid?command=view_post&amp;post=158559</guid>
            <pubDate>Thu, 06 Aug 2009 20:15:08 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Acryptid?command=view_comments&amp;post=158559#comments</comments>
            
            <description>Okay, so I've made this system where you can buy certain mobs to place on the map for a defense system. Got it working and all, but I'm not sure how to go about saving the mob's location to that particular place on the map upon death of the mob to respawn it there, or upon reboot/deletion of the world.&lt;br&gt;
&lt;br&gt;
How do I do this? I'm not too familiar with saving entire world stuff and I only want to save one particular type of mob.&lt;br&gt;
&lt;br&gt;
I've tried various things. Just can't get it to work, so any help would be appreciated.</description>
        </item>
                <item>
            <title>Saving a World Var</title>
            <link>http://www.byond.com/members/Acryptid?command=view_post&amp;post=140897</link>
            <guid>http://www.byond.com/members/Acryptid?command=view_post&amp;post=140897</guid>
            <pubDate>Wed, 05 Aug 2009 15:27:29 +0000</pubDate>
            
            <comments>http://www.byond.com/members/Acryptid?command=view_comments&amp;post=140897#comments</comments>
            
            <description>&lt;b&gt;Code:&lt;/b&gt;&lt;br&gt;
&lt;div class=&quot;dmcode&quot;&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre class=&quot;dmcode&quot;&gt;
&lt;span class=&quot;dmkeyword&quot;&gt;proc&lt;/span&gt;&lt;br&gt;    WorldSave()&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/savefile/F = &lt;span class=&quot;dmkeyword&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;world.sav&amp;quot;&lt;/span&gt;)&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;for&lt;/span&gt;(&lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/vgoldinbank)&lt;br&gt;            F[&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;vgoldinbank&amp;quot;&lt;/span&gt;] &amp;lt;&amp;lt; vgoldinbank&lt;br&gt;&lt;br&gt;    WorldLoad()&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/savefile/F = &lt;span class=&quot;dmkeyword&quot;&gt;new&lt;/span&gt;(&lt;span class=&quot;dmstring&quot;&gt;&amp;quot;world.sav&amp;quot;&lt;/span&gt;)&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;var&lt;/span&gt;/atom/A&lt;br&gt;        &lt;span class=&quot;dmkeyword&quot;&gt;while&lt;/span&gt;(!F.eof)&lt;br&gt;            F &amp;gt;&amp;gt; A
&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Problem description:&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
Okay, basically I am sticking the procs into the World/New() and World/Del() but no matter what I do or try, I can't seem to get them to load properly. Something is saving, because it is making the world.sav and storing some data; but nothing ever loads. Upon closing/opening server, the data disappears. I've tried world/proc, removing the var/atom/A and while bits and just using F[&quot;vgoldinbank&quot;] &amp;gt;&amp;gt; vgoldinbank, and different other methods that I've seen discussed around the Dev Forums, but I can't really find much information about saving world vars.&lt;br&gt;
&lt;br&gt;
A lot of the time, the entire game freezes up upon attempting to close or open it, with this in place.&lt;br&gt;
&lt;br&gt;
If you're wondering what I'm attempting to do, if it helps any, is make a per village banking system. All villagers can use the same bank to deposit funds into so that the leader of the village can use those funds to make village defense upgrades.&lt;br&gt;
&lt;br&gt;
Didn't want to post for help, but I'm really stumped.</description>
        </item>
            
    </channel>
</rss>


