Wednesday, July 1, 2015

Revision 4217 - Revision 4226

Revision 4217

<div class="markdown_content"><p>Fixed a potential bug in one of the scenes of the Niji quest.<br>
Minor typo correction by Blade1301 in one of the quest dialogue.<br>
Added climate data for maps missing it. (Please guys in the future do keep track of what maps are added to the game and in what climate they need to have)</div>

Revision 4218

<div class="markdown_content"><p>Adding blank maps for placeholder to be used in Big City Shenanigans.</div>

Revision 4219

<div class="markdown_content"><p>First City - Military District geography completed! Needs some sprucing up, but early decorations are handled. </p>
<p>Maps 713-716 added, all outdoor City areas. Only Map 713 has any data in it.</div>

Revision 4220

<div class="markdown_content"><p>Merged st's shop update, the shops will now show a picture of the currently selected actor, and a bit more info is given.<br>
Skill shop does not yet have the update.</div>

Revision 4221

<div class="markdown_content"><p>Added girl logs for pastimes</p>
<p>def handle_pasttime_effects(cust,pasttime,wants)<br>
to make calls to the logging mthod</p>
<p>def handle_girl_log(girl, reason, data = nil, add = false)<br>
to handle those calls</div>

Revision 4222

<div class="markdown_content"><p>Significantly improved startup load time by prebuilding a cache of the compiled XMLs data.<br>
Changes to XMLs or States database will need the cache rebuilt or the startup done through XMLs.</p>
<p>Note to devs and modders:<br>
To rebuild the cache open Debug.txt and change the <recompile_cache> tag from false to true and open the game, a prompt will warn you when the cache has been rebuilt, at which point it is possible to turn the tag back to false to enjoy the improved startup time, in alternative you can turn to true the <xml_import> tag, which will make the startup process relay on the XMLs but will not rebuild the cache.</p>
<p>Animations, Tilesets, Common events, System, Enemies, Troops and Maps still use the original rxdata files so changes in the editor for those will register without having to rebuild the cache.</div>

Revision 4223

<div class="markdown_content"><p>Fixed tactics system not being cached during cache building, tactics should now work as well as before.</div>

Revision 4224
Lord-kaumas: (the new guy)

<div class="markdown_content"><p>Moved code to pick map for brothel rooms from maps to a central script</p>
<p>As it is a proof of concept for a possible approach, everything in this commit adds to a new directory rather than overwriting/modifying any existing files.</p>
<p>Map selection is simplified a great deal by splitting up the code and only have one purpose for each method.</p>
<p>- one method to look up the map ID for a room. It is given a brothel ID and room name (like 1 and :MainHall) and it returns the room ID with the current room expansions</p>
<p>- maps now move based on transferPlayer, which aims for a room and event rather than map ID and coordinates</p>
<p>Example: transferPlayer(1, :Exterior, "Front Door", :Down)<br>
This will move the player to the outside of brothel 1, stand on the event called "Front Door" and will look down. No need to figure out which mapID the exterior has with the current rooms.</p>
<p>More code is added for stuff like looking up coordinates of events. This is generic coding and will not need updating as more brothels use this setup.</p>
<p>Brothel 1 (The Fishing Hole aka Docks/beach brothen) has upgraded maps as proof of concept.</div>

Revision 4225

<div class="markdown_content"><p>Missed adding one map in last commit</div>

Revision 4226

<div class="markdown_content"><p>Dev only:<br>
Added brothels id constants to the database, under the module BROHELS_ID</p>
<p>list of added constants:<br>

Monday, June 22, 2015

Revision 4209 Revision 4216

Revision 4209
Edwards 21:

<div class="markdown_content"><p>Ladies and Gentlemen, this is the big one.</p>
<p>New questline: Niji Island and the Poison Scroll.<br>
New area: Niji Island, Niji Island Tower, Niji Island Grotto<br>
New bosses: Updated Ayane boss fight to account for poisoned needle. Added bosses for Niji Island starter quests.<br>
New Music: Updated Kasumi boss fight music</p>
<p>Known bugs: There was a sound issue in the Niji Tower Basement, music removed for the time being.<br>
Certain encounter at the end of the Niji questline not yet imnplemented, that's next. Placeholder dialogue currently in play.<br>
If you have COMPLETED the Ayane and Kasumi questline, you will not be able to utilize the scroll after the fact. <br>
Niji Island could still use some fleshing out. Expect visual and technical updates to follow.</p>
<p>Sorry this took so long, everyone, but I'm damn glad to have it live! Good luck!</div>

Revision 4210

<div class="markdown_content"><p>Removed the old Scroll of Antidotes, only way to get it is now the new Niji quest.</div>

Revision 4211

<div class="markdown_content"><p>Fixed bugged ladder that was preventing access to the new Niji quest.</div>

Revision 4212

<div class="markdown_content"><p>Cleaned up a few Island houses maps.</div>

Revision 4213

<div class="markdown_content"><p>Fixed a couple of houses shifting the view unnecessarily in the slums.</div>

Revision 4214

<div class="markdown_content"><p>Fixed Vigor and Morale bars coloring with invalid values. (Fixes just bought lolis having strange vigor bar colors)</div>

Revision 4215

<div class="markdown_content"><p>Added normalization of actors vigor and morale to their supposed maximum at game start.</div>

Revision 4216

<div class="markdown_content"><p>(Revamp script)<br>
Fixed crash in get_girl_list method's loop when computing with the empty slots in the brothel girl list.</div>

Monday, June 15, 2015

Revision 4202 - Revision 4208

Revision 4202
future revamp : added sick handling, and set up the hashes for trait and battle class variation on girl price.

Revision 4203
Fixed assignment to battle party to not remove girls from the brothel.
Updated various brothel methods to make a girl unavailable for work if she is in the battle party.
Removed stop_working method compatibility fix has it was messing up the arguments unnecessarily. (old calls to method have been eliminated or updated with proper arguments)
Minor improvement to the handle_secondary_works method to use the get_all_available_workers method instead of looping through the rooms.
Removed old unused states from the sign in exception list of states to not remove.

Revision 4204
Unreleased WIP Quest: Niji island
- Added locked door in the basement

Revision 4205
Two Horns Cave added [needs to be worked on before playable]

Revision 4206
Shifted a map to another id

Revision 4207
Progress on Niji island has stalled due to some coding insanity with the original Ayane and Kasumi quest. Putting in a temp upload so new map doesn't get overwritten.

Revision 4208
Added a few traits in preparation for the revamp. (does not affect gameplay at this time.)

(Revamp Script)
Rewriten get_girl_list method to be in line with the revamp stuff, mercs and players now need the job traits to be assigned to specific jobs.
Added job traits needed for assignment to job hashes in database under the key :free_staff_trait. 

Thursday, June 11, 2015

Revision 4199 - Revision 4201

Revision 4199
Minor music update. Edited Raging Mohawk (Deril) boss music. 

Revision 4200
Added idle dialogue to npcs in the slums guard barracks and crossroad guardhouse.
Removed a few unused maps and removed the IDs from the climate script.

Revision 4201
Fixed slums barracks dialogue and movement to avoid potential crashes.
Fixed Nivalis inn to detract gold and skip the day when choosing to stay.
Fixed time skipping to a specific hour method to skip to the next day if the hour specified is the same as the current hour.
Debug test cave in the desert is now only accessible in debug mode.

Tuesday, May 26, 2015

Revision 4192 - Revision 4198

Revision 4192
(Revamp script)
Fixed crash when trying to equip/unequip armors.
Shortcut in camp menu now works exactly like the buttons "Current Team", "Slaves" and "Free Staff".
Added shortcut for the "Move" command in the camp menu (keyboard button 4).

- Equipment is borked, actors don't gain the initial stats of weapons or armors save for att, def and matt.
- Equipment menu keeps adding the stats of the selected armor at each refresh skyrocketing/plummeting the actor stats.

Revision 4193
(Revamp script)
Fixed equipment menu skyrocketing/plummeting stats when an armor was selected.
Fixed actor import not adding initial equip stats to the @equip_stats array.
Commented out auto assign's global variable initialization, saving and loading.

Revision 4194
(future revamp) fixed crash in market info menu (and updated to use new classes)

Limits: Currently only shows (up to) top 8 most likely customer classes. Due to this, and rounding, can display totals<100%, this is most likely perfectly acceptable, but bears mentioning in case someone asks.

Revision 4195
(future revamp) small fix to market info display to improve accuracy.

Revision 4196
(Revamp script)
Rewritten accept_offer? method to use attractiveness modified by traits and lust or obedience (if lust fails it tries with the obedience modifier).
Added Accept_offer_modifier_hash to Database and hashes doc.
Fixed handle_girl_log to not hang when two customers with the same name got refused.
Slightly modified the sex and refusal log strings to include offer expectancy and if the offer was grudgingly accepted.

Revision 4197
(Future Revamp) Added dynamic oneliner tag generation code (to keep up with jobs as they are added/removed)

Revision 4198
(Revamp script)
Fixed crash when trying to enter the girls full stats in the Girl Management menu.
Changed Girl Management menu full stats page to show brothel name instead of location. 

Thursday, May 21, 2015

Revision 4179 - Revision 4191

Revision 4179
(future revamp) small fix for rare tips crash

Brothel line 998
tip_income += tip[1] -> tip_income += tip[2][1]

Revision 4180
(Revamp script)
Partially fixed carpenter, menu works but upgrade timer never goes down at day end.

Revision 4181
(Revamp script)
Fixed carpenter to apply the upgrades in a proper manner.
Updated brothel loader to avoid importing nil data for room effects and room decisions.
Added end_day_upgrades method to Game_Brothels class to loop through the brothel and check if upgrades need to be made or timer needs to be lowered. (called from end_day_managing method)

Revision 4182
(All future revamp)
Consolidated the rxdata exporting functions to a single script file, and renamed the script to Rxdata Export Methods

changed the customer and brothel import code to validate customer class data contained within and store customer_class_ids instead of customer_class_names, also added debugging strings to help identify bad xml.

Changed the load order to load brothels after customer data, so that the customer class array would be built before the brothels are loaded, to facilitate xml import validation (see above), reordered the method definitions as well, to remain consistent.

Renamed the $customer_class[] global to $data_customer_class[] for consistency with other import globals (and adjusted code calls accordingly)

Added the method class_data to the class Customer to facilitate cleaner class data access for any given customer (simply returns $data_customer_class[@class_id])
Used in: add_reputation, which also added some checks to restrict reps to integer values (0..1000)

ALOT of cleaning of code in brothel and other areas

added #todo comments everywhere that I thought something looked fishy or incomplete, for others to confirm and look at, and for ease of final polish run-throughs

Corrected a few methods in brothel to facilitate the new customer_class_id storage paradigm: generate_new_cust_class

corrections to stop_working (actor/couple/party) and remove_girl(actor_id, broNum, force = false) (brothel) to fix the get/store girl at the guild member

corrected the following xml (new import validation fixes)
Court Jester.xml

All of the brothel xmls

Revision 4183
corrected a problem with re-use of available name in the brothel and customer imports.

Revision 4184
removed p command from previous update - woops...

moral of the story, don't code tired :)

Revision 4185
(Revamp script)
Removed leftover print command from add_actor method.
Merged ed's bgm loops from the current version.
Options menu doesn't get reset anymore when returning to the title or game over.

Revision 4186
Corrected a few typos in names and descriptions of the brothels.

Revision 4187
(Revamp script)
Fixed crash when trying to sell a brothel caused by the @rooms variable clearing.
Commented out uses of $game_variables[5] since they seems to be used by nothing and are updated by old systems that cause crashes.

Revision 4188
(Revamp script)
Real Estate menu now properly displays the number of beds a brothel has. (requires restart)
Real Estate menu now lists brothel names instead of locations. (location is still displayed on the right info window)
Shifted the brothel xml loaders methods to be closer together for ease of debugging.

Revision 4189
(future revamp) minor fix for hanging end caused by commenting vestigial code.

Revision 4190
(Revamp script)
Changed Real Estate and Carpenter menus info window behavior to only refresh when index has been changed instead of each frame

Revision 4191
(Revamp script)
Fixed end of day log not showing all the owned brothels.
Fixed Communal Windows script dispose methods to check if they are already disposed before disposing the content (caused a rare crash in very specific circumstances).
Fixed class_data method in the Customer class to use the right global variable.
Renamed My Addition script to Time System Moon Phases.

Tuesday, May 19, 2015

Revision 4169 - Revision 4178

Revision 4169
Removed checkpoint feature.
Added autosave during the end of day calculations.

Revision 4170
(Revamp script)
Fixed revenue and log method to handle tips correctly.

Revision 4171
(Revamp script)
Corrected stats calculations in brothel methods to return floats for more precise calculations.

Revision 4172
(All future revamp only)
Fixed maps to use new method of accessing brothel.totalRooms => brothel.rooms[room].size

For detailed list of exact changes, refer to Map_Transform_Log.txt (included)

Added the map search code to the script file, for future batch conversions and searches

Revision 4173
(Revamp script)
Fixed end of day log printing only for the brothel the player was in.
Removed some unnecessary methods, commented a few i was unsure about. (early testing seems to indicate that no crash from missing method has been introduced)

Revision 4174
Fixed crash upon entering harpy's nest upper rooms. Specifically:
changed the following 2 methods
(updated to use occupant_id)
Character / Player / Event
def change_wapp(workroom)
# Girls working in brothel:
wr_actor_id=workroom.occupant_id[$game_system.time.week_day_num()] if workroom != nil
if wr_actor_id != -1 && wr_actor_id != $game_party.actors[0] && ($game_switches[DB_BROTHEL::WORKING_HOURS_SWITCH] || $game_actors[wr_actor_id].still_working?)
@actor_id = wr_actor_id
@character_name = $game_actors[wr_actor_id].character_name
@actor_id = 0
@character_name = ""

(updated to default to today's week_num if no paramater provided)
Climate and Time System 
def week_day_num(day_name_parameter=nil)
# accepts the name of a week day and converts it into an integer:
# defaults to the current day if no parameter is provided
day_name_parameter=day_name if day_name_parameter==nil
for i in 0..(CCTS::DAYS.size-1)
if CCTS::DAYS[i]==day_name_parameter
return i
return -1

(Also as a result of the above, cleaned alot of code by changing all the calls to:
to use the new default

Revision 4175
(future revamp) fixed brothel crashes due to sprite spawning
this meant alot of changes, in alot of places, too many to detail

Revision 4176
(Revamp script)
Removed unnecessary methods form the brothel assignment menu.
Added week_day_name method to CCTS to get the day name based on the day of the week (defaults to current day if no argument is given).

Revision 4177
(Revamp script)
Fixed girl duplicating themselves when unassigning them after loading. (hopefully)

Revision 4178
(Revamp script)
Fixed the previous fix about duplicating girls.

Monday, May 18, 2015

Revision 4164 - Revision 4168

Revision 4164
Sign in should now properly heal and remove statuses form all actors in your brothels (unless it is a brothel status).
Removed alchemy recipe book from the Harpy's Nest.
Updated diary in master bedroom of the Harpy's Nest to use the proper brothel menu.

(Revamp script)
Fixed bug 20, now actors should be properly healed when signing in.

Revision 4165
(Revamp script)
Added handle_revenue method to deal with brothel profit and losses.
Updated the end of day log to get the revenue data from the correct variables.
TODO: need to check whore calculations, a single girl in a starter brothel is making an average of 1500 a day.
TODO: add maintenance cost to brothel XMLs.

Revision 4166
(Revamp script)
Fixed STATES module constants to link to valid states (was causing those states to not work at all).
Fixed attractiveness list to not delete girl who are busy (since that state gets always set at the start of the day, might need a new state to indicate an unavailable girl).
With exhaustion working the girl revenue gone down from 1500 to 200 average.

Revision 4167
(Future Revamp) fixed an issue with too few parameters for the method stop_working in module WORK (Actor/couple/party) that caused a crash when trying to add an actor to the battle party

Several calls were being made to this method with no parameters, or only a single boolean parameter.

Overloaded the method's parameter list to properly handle these cases
being handed nil for the day parameter now unassigns all 7 days
no parameters defaults to all 7 days, and forced of false
a single boolean parameter defaults to all 7 days and forced is the boolean value provided
a single non-boolean is treated as if day was provided, and forced defaults to false

Revision 4168
(Revamp script)
Fixed states code broking out (again).
Added WORKING state to indicate that a girl is assigned, BUSY now is exclusive to a girl occupied with a customer.
Added working? method to the actor class to check if the girl has the assigned state.
Added add_brothel_state and remove_brothel_state to deal with brothel states since they need special handling.
Stats changes section of the end of day log only gets printed if any stats are actually changed. 

Sunday, May 17, 2015

Revision 4157 - Revision 4163

Revision 4157
Altered eastern mountain path, altered Midgard maps.
[name change to midgard will occure soon.]
[Eastern Mountain Path will have decor and foliage added soon.]
[will begin on Eastern Mountain path 2 soon.]
[Eastern Mountain Path will have quest added in the future.]
[Extended Cinder's Lair will be added upon completion of Eastern Mountain Path.]

Revision 4158
Fixed transfer problems connecting to maps around Eastern Mountain Path.

Revision 4159
Crossroad transfer to east mountain path fixed.... for the final time

Revision 4160
Minor fixes to the transfer events of the new eastern mountain path. 

Revision 4161
collisions fixed for Eastern Mountain Path.

Revisino 4162
(Revamp script)
Added stat changes to end of day log.
Fixed crash in exhaustion calculation caused by infinite numbers

Revision 4163
Added the Enemies export script and the Data/Enemies/*.xml

No functional changes (just prep for the later combat revamp

Saturday, May 16, 2015

Revision 4149 - Revision 4156

Revision 4149
All quest architecture and story for Niji Island (formarly known as Ninja Island) has been completed! Some battle testing and routing the questline still needed, but release soon!

Revision 4150
Implemented puzzles for Niji Island quest. (Not yet accessible)

Still needs to update the second puzzle with proper audio and link the puzzle solutions to the item gains or events as appropriate.

Revision 4151
Fixed the text windows going under the status and clock windows instead of on top.
Hopefully fixed a somewhat rare FMod error, if the line about the testfix comes up let me know if anything strange happened to the audio.

Revision 4152
(Revamp script)
Fixed girls log not resetting on new days.
Added missing vigor loss reduction from whoring.
Added minimum cap to whoring vigor loss (can't go under 5 for now)
Added case in handle_health_loss for whoring.

Revision 4153
Removed some leftover debug teleports. 

Revision 4154
Debugged and released Siege of Deril and Mohawk's Last Stand quests, finally completing the Mohawk questline, sorry for the long delay.
There are some unfinished graphics, but the quests are fully functional.
Deril town is not yet open for exploring even after the quests completion.

Revision 5155
(Revamp script)
Fixed name generator xml import to import the expected values.
Fixed variable name in customer name generation code which was causing a crash once custom name lists were added.

Revision 4156
(Revamp script)
Fixed crash when signing in with Maya.
Fixed crash when trying to rise or lower the bouncer gold limit from the brothel management menu.
Removed the old shortcut to rise and lower the bouncer gold from the job assignment menu and removed the text indicating that it would be possible to do so.

TODO: Add current management decision text in job description into the job assignment menu.