1. featheredmelody
  2. Lost Sky Project (Public)

Commits

fawkes  committed 72957c1

# 7/3/09 - v0.3.1 Final
- [Bugfix] Add Item sub action's quantity attribute not being converted to an integer
- Selectively hiding and showing the cursor on the prologue map
- Fixed the mission count on the save screen. Completing the prologue no longer counts as a mission finished.
- Restored CH0ST2 (Alice test mission) to appear only after beating Chapter 1
- Changed Trade #1 and Trade #2 wanted items

  • Participants
  • Parent commits d59a348
  • Branches default
  • Tags v0.3.1 Final

Comments (0)

Files changed (11)

File Story of a Lost Sky/changelog.txt

View file
+# 7/3/09 - v0.3.1 Final
+- [Bugfix] Add Item sub action's quantity attribute not being converted to an integer
+- Selectively hiding and showing the cursor on the prologue map
+- Fixed the mission count on the save screen. Completing the prologue no longer counts as a mission finished.
+- Restored CH0ST2 (Alice test mission) to appear only after beating Chapter 1
+- Changed Trade #1 and Trade #2 wanted items
+
 # 7/1/09 - v0.3.1 Beta 2
 - Updated readme
 - Removed the Lorem Ipsum from the news story

File Story of a Lost Sky/data/XML/Missions/CH0ST1.xml

View file
         <reward type="treasure">synth_fire</reward>
         <reward type="treasure">synth_water</reward>
         <reward type="treasure">synth_earth</reward>
-        <reward type="treasure">insig_item</reward>
-        <reward type="treasure">insig_item</reward>
     </rewards>
     
 	<setup_block>
         
 		<initial_locations>
 		
-			<!--<start_point name="Ran">(3,14)</start_point>
-			<start_point name="Chen">(4,14)</start_point>-->
+			<start_point name="Ran">(3,14)</start_point>
+			<start_point name="Chen">(4,14)</start_point>
 			
 			<start_point name="Wriggle">(3,15)</start_point>
 			<start_point name="Fairy B">(19,6)</start_point>
         
 		<map_action>
             
+            <sub_action name="add_item">
+                <item_type>treasure</item_type>
+                <item_id>synth_water</item_id>
+                <quantity>1</quantity>
+            </sub_action>
+            
             <sub_action name="center_on">
                 <unit>Ran</unit>
             </sub_action>

File Story of a Lost Sky/data/XML/Missions/CH0ST2.xml

View file
     <cancellable>True</cancellable>
     <mission_type>battle</mission_type>
     <!-- Define prerequisite(s) -->
-    <!--<prereq>CH1ST3</prereq>-->
+    <prereq>CH1ST3</prereq>
     
     <!-- Define basic map level data-->
     <map_file>map2.txt</map_file>

File Story of a Lost Sky/data/XML/Missions/CH1ST1.xml

View file
             
             <sub_action name="show_chapter_title">
                 <chapter_number>1</chapter_number>
-			</sub_action>
+            </sub_action>
         </map_action>
     
         <map_action>

File Story of a Lost Sky/data/XML/Missions/CH1ST2.xml

View file
                 <location_box>(18,20,7,4)</location_box>
                 <team>1</team>
             </trigger>
+            <sub_action name="center_on_coords">
+                <coords>(27,23)</coords>
+            </sub_action>
             <sub_action name="say">
-                <line>There is something shiny sitting under of the cherry blossom tree.</line>
+                <line>There seems to be something shiny sitting under of the cherry blossom tree.</line>
                 <speaker>None</speaker>
             </sub_action>
+            <sub_action name="center_on_coords">
+                <coords>(18,22)</coords>
+            </sub_action>
         </map_action>
         
         <!--Arrival at the cherry tree-->

File Story of a Lost Sky/data/XML/Missions/prologue.xml

View file
                 <unit>Ran</unit>
             </required_units>
             
+            <sub_action name="set_cursor_state">
+                <show_cursor>False</show_cursor>
+            </sub_action>
+            
             <sub_action name="play_music">
                 <song>event01</song>
 			</sub_action>
                 <speaker>None</speaker>
 			</sub_action>
         
+            <sub_action name="set_cursor_state">
+                <show_cursor>True</show_cursor>
+            </sub_action>
+            
             <!--Youmu contemplating worried-->
             <sub_action name="center_on">
                 <unit>Youmu</unit>
 				<line>They're not back yet...</line> 
                 <speaker>Youmu</speaker>
 			</sub_action>
+            
+            
+            <sub_action name="set_cursor_state">
+                <show_cursor>False</show_cursor>
+            </sub_action>
+            
             <sub_action name="move_unit">
                 <unit>Youmu</unit>
                 <destination>(7,10)</destination>
                 <unit>Youmu</unit>
                 <destination>(7,8)</destination>
             </sub_action>
+            
+            <sub_action name="set_cursor_state">
+                <show_cursor>True</show_cursor>
+            </sub_action>
+            
             <sub_action name="center_on">
                 <unit>Youmu</unit>
             </sub_action>
                 <speaker>Youmu</speaker>
 			</sub_action>
             
+            
+            <sub_action name="set_cursor_state">
+                <show_cursor>False</show_cursor>
+            </sub_action>
+            
 			<sub_action name="say">
 				<line>Wait, your master is not with you?</line> 
                 <speaker>Ran</speaker>
             <sub_action name="say">
 				<line>Although I do wonder if all of this is an elaborate plot on the part of Lady Yukari. Either way, let's get moving as soon as you're ready.</line>
                 <speaker>Ran</speaker>
-			</sub_action>w
+			</sub_action>
             <sub_action name="say">
 				<line>And so the three set off in search for their missing masters, not knowing it would be the first step in a long journey.</line>
                 <speaker>None</speaker>
 			</sub_action>
             
+            <sub_action name="set_cursor_state">
+                <show_cursor>True</show_cursor>
+            </sub_action>
+            
         </map_action>
     </pre_mission>
     

File Story of a Lost Sky/data/XML/trading.xml

View file
             <item_id>synth_fire</item_id>
             <quantity>1</quantity>
         </item_wanted>
-        <item_wanted>
-            <item_id>synth_earth</item_id>
-            <quantity>1</quantity>
-        </item_wanted>
         <item_offered>
             <item_id>synth_water</item_id>
             <item_type>treasure</item_type>
             <quantity>1</quantity>
         </item_wanted>
         <item_wanted>
-            <item_id>insig_item</item_id>
+            <item_id>synth_earth</item_id>
             <quantity>1</quantity>
         </item_wanted>
         <item_offered>

File Story of a Lost Sky/engine.py

View file
             # Sums up amount of missions completed
             for event_data in player.all_event_data.values():
             
-                if event_data.done == True:
+                if event_data.done:
                     missions_completed += 1
+                
+            # Subtract 1 from final mission complete count since prologue doesn't count
+            if self.all_events_master['Prologue'].done:
+                missions_completed -= 1
                     
             # computes the average unit level
             level_avg = str(int(total_unit_level / len(player.all_unit_data.values())))

File Story of a Lost Sky/readme.txt

View file
 *Rather than starting off with a fixed set of traits, characters will now be able to learn traits
 *Rinnosuke makes his first appearance in the Trading System. This is still highly experimental and there isn't much in there at the moment.
 *The Sandbox mission demonstrates an experimental version of a new gameplay mechanic called Spirit Source Point Capture. The goal is to take control of a number of magic seals on the map.
+*For missions beyond CH1 where a larger cast comes in, we have developed a deploy unit system. Like most new features this is still experimental. 
 
 Q1. Where are Reimu and Sakuya?
 Both of their code is in the game, but not active. She isn't scheduled to appear until the beginning of Chapter 2,

File Story of a Lost Sky/srpg.py

View file
 import xmlreader
 import time
 
-# try:
-    # import psyco
-    # psyco.full()
-# except ImportError:
-    # pass
-
 os.environ['SDL_VIDEO_CENTERED'] = '1'
 
 pygame.init()
 #   Initialize player units catalog
 #   Initialize trait catalog
 #   Initialize the spell catalog
+#   Initialize unit animations catalog
 engine = Engine(screen,tilesize,size_window)
 engine.player_units_catalog = xmlreader.Unit_catalog('playerunits.xml')
 engine.trait_catalog = xmlreader.Trait_catalog('traits.xml')
 wm = Worldmap(engine,region_list,region_paths_list)
 
 ##################################
-# Unit initialization
+# Unit starting units initialization
 ##################################
 xmlreader.initialize_units(engine,'initialize.xml')
 
 engine.music_catalog =xmlreader.get_music()
 engine.trading_catalog = xmlreader.Trading_catalog()
 
-
 ##################################
 # OTHER CUSTOM SETTINGS GO HERE
 ##################################

File Story of a Lost Sky/xmlreader.py

View file
                 sub_action = ['add_item']
                 sub_action.append(load_element(sub_action_node,'item_type'))
                 sub_action.append(load_element(sub_action_node,'item_id'))
-                sub_action.append(load_element(sub_action_node,'quantity'))
+                sub_action.append(int(load_element(sub_action_node,'quantity')))
                 
             # Case: Center on a unit
             elif action_type == 'center_on':