Skip to content

Conversation

@Tald0r
Copy link
Contributor

@Tald0r Tald0r commented Nov 22, 2025

Lso copy move alternative map

Add alternate map source option in copy/move tool

Add ability to use different map sources for copy/move operations with auto-detection of map dimensions. Introduces new UI elements including:

  • Checkbox to enable alternate source map
  • File selection for map/staidx/statics
  • Configuration fields for map dimensions
  • Automatic dimension detection based on map number
  • Path auto-completion for static files when selecting map

Enables copying tiles between different map formats and installations.

Add ability to use different map sources for copy/move operations with auto-detection of map dimensions. Introduces new UI elements including:
- Checkbox to enable alternate source map
- File selection for map/staidx/statics
- Configuration fields for map dimensions
- Automatic dimension detection based on map number
- Path auto-completion for static files when selecting map

Enables copying tiles between different map formats and installations.
Added detailed debug logs to LsCopyMove deserialization and ServerLandscape alternate map initialization. This helps track alternate map file loading parameters and validation during large-scale operations by logging:
- UseAlternateSource flag state
- Alternate file paths and dimensions
- File existence checks and sizes
- UOP format detection
Support troubleshooting map loading issues in development environments.
- Added detailed debug logging for alternate source parameters in CopyMove.cs
- Refactored LSOCopyMove serialization to use WriteStringNull for paths and cast dimensions to ushort
- Improved server-side LsCopyMove deserialization with:
  - Try-catch block for error handling
  - Enhanced debug logging for each alternate source parameter
  - Structured reading of map dimensions as ushort values

These changes improve debugging capabilities and ensure proper data serialization when using alternate map sources for copy/move operations.
When using an alternate source map:
- Force Copy mode (disable Move option) with explanatory tooltip
- Enforce Absolute coordinate mode (disable Relative) with tooltip
- Expand source map dimension tooltips to include multiple maps
- Update coordinate system switching logic to handle new constraints
- Provide clear UI feedback when operations are restricted
- Update default alternate map dimensions from 768x512 to 7168x4096 in CopyMove class to support larger map sizes.
- Deleted debug logs that are no longer needed.
@Tald0r Tald0r marked this pull request as draft November 26, 2025 23:26
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