Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic scenario objects #1169

Merged
merged 56 commits into from
Jan 30, 2025
Merged

Conversation

crudelios
Copy link
Collaborator

This PR adds many changes to the map editor.

Most notable changes:

  • Unlimited requests, price changes, demand changes and invasions (there was a hard limit of 20)
  • Repeatable requests and invasions, with varying amount of items/ invaders, with configurable min and max, number of repeats and time between repeats
  • Unlimited custom variables (there was a hard limit of 100)
  • Ability to name events for ease of use
  • Ability to group event conditions - if any condition in a group is met, the entire group is considered met. All groups and ungrouped conditions need to be met for the event action to fire
  • All buildings can be individually allowed and disallowed
  • Many map editor UI improvements
  • Probably more stuff I don't remember

This needs a lot of testing. Also, backup your important savefiles as there may be unforseen issues.

crudelios added 30 commits July 10, 2024 15:17
Also some code refactoring
- Add form validation
- Color "remove item" button
- Add "Cancel" button
Event conditions can now be grouped. If any condition in a group is met, the entire group is set as met.

All groups, as well as all ungrouped conditions, must be met for an event to trriger an action.

Also start improving the event editor UI (still WIP).
Add "Set selected to group" button
src/window/editor/scenario_event_details.c Dismissed Show dismissed Hide dismissed
src/window/editor/scenario_event_details.c Dismissed Show dismissed Hide dismissed
src/window/editor/scenario_event_details.c Dismissed Show dismissed Hide dismissed
src/window/editor/scenario_event_details.c Dismissed Show dismissed Hide dismissed
src/window/editor/scenario_event_details.c Dismissed Show dismissed Hide dismissed
src/window/editor/scenario_event_details.c Dismissed Show dismissed Hide dismissed
@crudelios crudelios marked this pull request as ready for review January 26, 2025 01:42
@crudelios crudelios requested a review from UberWaffe January 27, 2025 16:26
…vent action

Remove buildings that can't be counted, like roads and bridges, from the "count buildings" condition

Improve xml import compatibility with files from before the current PR changes

Also a small code refactor
Also fix some bugs with the xml exporter

Also update cv2pdb
Fix bug where the event "repeat type" could be wrongly set
@crudelios crudelios merged commit ec596ac into Keriew:master Jan 30, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant