• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Code "overlay"

Status
Not open for further replies.
Level 3
Joined
Jan 16, 2023
Messages
14
Hey, I'm looking to edit a mod that has a long history of being edited by different people, but throughout this process, the code doesn't seem to have changed much, but later versions have used some weird code-overlay process. It manifests in a way that if I take a modern version of the map and start editing it, it will revert to a much earlier version of the map, which suggests that the modern changes have been implemented as some sort of overlay that gets disabled upon editing. For example, there is some text on the map that says "260%" in the modern version and after I edit the code, it will revert back to "180%" which makes sense since "260%" isn't present anywhere in the code.
Are you aware of some mechanism that would do this? I'm thinking some hash-table shenanigans, but there is also some sub-string weirdness in the code, where they'll make a random string, and extract a single letter and make words to be used later.
I've attached the two maps, the code is identical except two lines
local string udg_MapName="Random Farm TD"
//call UnitAddItemByIdSwapped('texp',udg_unit12)
The first is to get the map to run, it won't without it, and the second is to avoid the game crashing.
 

Attachments

  • Random Farm TD 0.57.w3x
    2.2 MB · Views: 6
  • Random Farm TD 0.57.w3x
    2.2 MB · Views: 3
Status
Not open for further replies.
Top