Skip to content

v2.0.0

Compare
Choose a tag to compare
@BlackRam-oss BlackRam-oss released this 22 Sep 13:39
· 99 commits to main since this release

There have been many changes for this reason I advise you to be very careful if you intend to update your version

Install Manual

You can install this version only manually:

Or you can use git submodule, but for install Install LTS Version

Migrations

Migrations

Routine Migration

For exemple:

the old routine:

init python:
    from pythonpackages.nqtr.routine import Commitment
    from pythonpackages.nqtr.action_talk import TalkObject

define df_routine = {
    # ...
    "alice_read" : Commitment(
        ch_talkobj_dict={
            "alice" : TalkObject(
                name="talk_alice_read",

                conversation_background ="bg alice terrace talk"
            ),
        },
        hour_start=10, hour_stop=20,
        location_id="house", room_id="terrace",
        background ="bg alice terrace",
    ),
}

the new routine:

init python:
    from pythonpackages.nqtr.routine import Commitment
    from pythonpackages.nqtr.conversation import Conversation

define df_routine = {
    # ...
    "alice_read" : Commitment(
        conversations = [
            Conversation(
                name="talk_alice_read",
                characters=a,
                conversation_background ="bg alice terrace talk"
            ),
        ],
        hour_start=10, hour_stop=20,
        location_id="house", room_id="terrace",
        background ="bg alice terrace",
    ),
}

Conversation Migration

For exemple:

to add conversation:

python:
    add_talk_choice(choice_id = "alice", choice_text = _("About the Ann"), label_name = "stage_talkalice_aboutann", dict_choices = talkch_choices)

now:

python:
    add_conversation_choice(choice_character = a, choice_text = _("About the Ann"), label_name = "stage_talkalice_aboutann")

to remove conversation:

python:
    del_talk_choice(choice_id = "alice", choice_text = _("About the Ann"), dict_choices = talkch_choices)

now:

python:
    del_conversation_choice(choice_character = a, choice_text = _("About the Ann"))

Use search and replace of vscode with regex functionality enabled

image

getTalkLabelName

  • getTalkLabelName\(\)
  • label_name

getButtonIcon

  • getButtonIcon\(\)
  • button_icon

get_hour_name

  • get_hour_name\(\)
  • timeslot_name

get_day_number

  • get_day_number\(\)
  • day

get_hour_number

  • get_hour_number\(\)
  • hour

get_weekday_number

  • get_weekday_number\(\)
  • weekday_number

get_weekday_name

  • get_weekday_name\(\)
  • weekday_name

isEvent

  • isEvent\(\)
  • is_event

getBackground

  • getBackground\(\)
  • background

bg

  • bg =(.*)
  • background =$1

bg

  • bg=(.*)
  • background =$1

isButton

  • isButton\(\)
  • is_button

isPictureInBackground

  • isPictureInBackground\(\)
  • is_picture_in_background

getButtonOrDefault

  • getButtonOrDefault\(\)
  • button_icon

getPictureInBackgroundOrDefault

  • getPictureInBackgroundOrDefault\(\)
  • picture_in_background

getSelectedButtonOrDefault

  • getSelectedButtonOrDefault\(\)
  • button_icon_selected

getSelectedPictureInBackgroundOrDefault

  • getSelectedPictureInBackgroundOrDefault\(\)
  • picture_in_background_selected

image_time

  • image_time
  • timeslot_number

hour_names

  • hour_names
  • timeslot_names

tm_start

  • tm_start
  • hour_start

tm_stop

  • tm_stop
  • hour_stop

stages_id

  • stages_id
  • stage_ids

number_stages_completed_in_quest_requests

  • number_stages_completed_in_quest_requests
  • required_number_completed_stages

weekend_day

  • weekend_day
  • weekday_weekend_begins

updateFlags

  • updateFlags\((.*)\)
  • update_flags($1)

getFlags

  • getFlags\((.*)\)
  • get_flags($1)

setFlags

  • setFlags\((.*)\)
  • set_flags($1)

notifyEx

  • notifyEx\((.*)\)
  • notify_add($1)

notifyExPreventsLoops

  • notifyExPreventsLoops\((.*)\)
  • notify_prevents_loops($1)

notifyExClean

  • notifyExClean\((.*)\)
  • notify_remove($1)

clearExpiredActions

  • clearExpiredActions\((.*)\)
  • clear_expired_actions($1)

isDisabled

  • isDisabled\((.*)\)
  • is_disabled($1)

isHidden

  • isHidden\((.*)\)
  • is_hidden($1)

isClosedRoom

  • isClosedRoom\((.*)\)
  • is_closed_room($1)

getRoomById

  • getRoomById\((.*)\)
  • get_room_by_id($1)

getLocationById

  • getLocationById\((.*)\)
  • get_location_by_id($1)

addInCurrentQuestStages

  • addInCurrentQuestStages\((.*)\)
  • add_in_current_stages($1)

addInCurrentTaskStages

  • addInCurrentTaskStages\((.*)\)
  • add_in_current_stages($1)

respectAllRequests

  • respectAllRequests\((.*)\)
  • all_requests_are_met($1)

isCompleted

  • isCompleted\((.*)\)
  • is_completed($1)

setDayNumberRequiredToStart

  • setDayNumberRequiredToStart\((.*)\)
  • add_required_days_to_start($1)

currentQuestId

  • currentQuestId\((.*)\)
  • quest_id($1)

completeStagesNumber

  • completeStagesNumber\((.*)\)
  • completed_stages_number($1)

getPercentageCompletion

  • getPercentageCompletion\((.*)\)
  • percentage_completion($1)

nextStage

  • nextStage\((.*)\)
  • next_stage($1)

afterNextStage

  • afterNextStage\((.*)\)
  • after_next_stage($1)

getChIcons

  • getChIcons\((.*)\)
  • character_icons($1)

getTalkBackground

  • getTalkBackground\((.*)\)
  • conversation_background($1)

clearExpiredRoutine

  • clearExpiredRoutine\((.*)\)
  • clear_expired_routine($1)

getChsInThisLocation

  • getChsInThisLocation\((.*)\)
  • characters_commitment_in_current_location($1)

getEventsInThisLocation

  • getEventsInThisLocation\((.*)\)
  • characters_events_in_current_location($1)

getChLocation

  • getChLocation\((.*)\)
  • commitment_by_character($1)

getBgRoomRoutine

  • getBgRoomRoutine\((.*)\)
  • commitment_background($1)

updateQuestsLevels

  • updateQuestsLevels\((.*)\)
  • update_quests_levels($1)

checkInactiveStage

  • checkInactiveStage\((.*)\)
  • check_inactive_stage($1)

checkIfTheQuestExist

  • checkIfTheQuestExist\((.*)\)
  • is_quest_existing($1)

checkIfTheQuestIsInNumberStages

  • checkIfTheQuestIsInNumberStages\((.*)\)
  • is_quest_in_number_stages($1)

checkIfTheQuestIsCurrentTaskStages

  • checkIfTheQuestIsCurrentTaskStages\((.*)\)
  • is_quest_in_current_task_stages($1)

checkIfTheQuestIsCurrentQuestStages

  • checkIfTheQuestIsCurrentQuestStages\((.*)\)
  • is_quest_in_current_quest_stages($1)

quest_getPercentageCompletion

  • quest_getPercentageCompletion\((.*)\)
  • quest_percentage_completion($1)

quest_setDayNumberRequiredToStart

  • quest_setDayNumberRequiredToStart\((.*)\)
  • quest_add_required_days_to_start($1)

quest_nextStageOnlyIsCompleted

  • quest_nextStageOnlyIsCompleted\((.*)\)
  • quest_next_stage_only_is_completed($1)

quest_nextStage

  • quest_nextStage\((.*)\)
  • quest_next_stage($1)

quest_isStarted

  • quest_isStarted\((.*)\)
  • quest_is_started($1)

quest_isCompleted

  • quest_isCompleted\((.*)\)
  • quest_is_completed($1)

quest_currentQuestId

  • quest_currentQuestId\((.*)\)
  • quest_current_quest_id($1)

quest_completeStagesNumber

  • quest_completeStagesNumber\((.*)\)
  • quest_complete_stages_number($1)

addTalkChoice

  • addTalkChoice\((.*)\)
  • add_conversation_choice($1)

delTalkChoice

  • delTalkChoice\((.*)\)
  • del_conversation_choice($1)

What's Changed

New Contributors

Full Changelog: https://github.com/DRincs-Productions/NQTR-System/commits/v2.0.0