Jump to content

Stan`

0 A.D. Project Leader
  • Posts

    18.333
  • Joined

  • Last visited

  • Days Won

    599

Everything posted by Stan`

  1. You forgot the space between -cr and /Users
  2. Can you right click and then open ? If not you are gonna have to use the command line. The reason is that macOS recent version don't trust you "the user" to make safe decisions, and so it restricts every application by telling you they are corrupted when they aren't.
  3. There is also https://replay-pallas.wildfiregames.ovh/ that allow you to share replays with other people to get an idea using as many replays as possible to someone's rating.
  4. Hey, Triggers are special events that are "triggered" when specific actions are met e.g: tasking units to gather wood. See https://trac.wildfiregames.com/wiki/Triggers
  5. int reverseMostSignificantBit(uint64_t n) { if (n == 0) return -1; // If n is 0, there is no significant bit set. int msb = 63; // Start with the highest bit position (63 for 64-bit numbers) uint64_t mask = 1ULL << 63; // Initialize the mask to check the highest bit while (mask > 0 && !(n & mask)) { msb--; mask >>= 1; // Move the mask to the next lower bit } return msb; } That's a naive way for that function. I must say I'm not yet convinced of your approach but we'll see. Another simpler version depending on the number size, might make a speed difference. int mostSignificantBit(uint64_t n) { if (n == 0) return -1; // If n is 0, there is no significant bit set. int msb = 0; while (n >>= 1) { msb++; } return msb; }
  6. Yeah sorry that's because when running in that mod it doesn't read configs from the old location so it acts like a new install. If you move the folder to another PC though since all the config files are in that folder that will never happen. With regards to the slowdown my guess is that it resetted the graphics options so it might have set the quality too high for your hardware. You can copy the old config from the appdata folder and put it in binaries/logs/ If the savegame took longer to load and you're moving from an ssd in c:/ to a hdd: in d:/ yeah that might explain the loading speed
  7. A good question one should ask is whether all the calls to that function are justified, whether they can be cached or batched.
  8. In a non visual replay iirc isqrt takes about 1% of a match.
  9. You should put it after not before
  10. let screen = guiObj.parent.getComputedSize(); let h = screen.bottom - screen.top; let w = screen.right - screen.left; let iw = h * 2; Just pick the highest element in the page you can grab.
  11. The game uses integers for its calculations, because floating point are note reliable on different machines, so we need to have the exact same values on each machines else the game will go out of sync pretty quickly. So I suppose what you are seeing are decimal values represented as int. https://code.wildfiregames.com/D1971 You can find most gameplay interesting patches by querying for @Freagarach on Phabricator https://code.wildfiregames.com/search/query/zNwhd_3YKp.n/#R
  12. It's not that hard to add but that means it will steal some of the simulation time measuring stuff that's probably not that important for most people.
  13. I don't know you have to check the SDL2 versions to know what's the minimum version that supports it. Well you can try printing stuff with LOGWARNING to see if that function is actually being used. If it is you might use the profiler inside the game (there are some docs on trac) to compare between versions. If it's not you have a bug And eventually if it doesn't yield any result maybe it's because it's not a bottleneck
  14. Sadly the person who made them has since then left the forums and all their posts were deleted.
  15. @vladislavbelov will approve this message (Les textures the better)
  16. I suppose it doesn't hurt to check Transifex in any case. Translations are pulled on Mondays and Fridays, so if it wasn't fixed yesterday, it's probably not fixed.
  17. @wowgetoffyourcellphone probably made the icon before the texture changed. If they are more like this you might make a ticket.
  18. You can also download it through the mod downloader for A26
  19. han_cc.blend You can append it from this file.
×
×
  • Create New...