Search found 575 matches

by Cyp
25 May 2019, 19:57
Forum: Development
Topic: Link to the oil derrick sound commit
Replies: 2
Views: 97

Re: Link to the oil derrick sound commit

If it's data/audio/sfx/building/oilpump.ogg, then it was added in 5ba7ddac6bb54a1b5f1e67a433ed8d866e191c50.
by Cyp
23 May 2019, 13:17
Forum: Balance
Topic: Unit designer limit
Replies: 15
Views: 356

Re: Unit designer limit

I wonder if large bodies should be more expensive or small bodies stronger, so people don't just pick the largest possible bodies most of the time.
by Cyp
07 May 2019, 07:39
Forum: Development
Topic: game nicks and how they make your opponent act
Replies: 1
Views: 107

Re: game nicks and how they make your opponent act

To avoid people knowing your tactics, one alternative to randomising your nick is randomising your tactics.
by Cyp
05 May 2019, 19:18
Forum: Addon discussions
Topic: Blue Building Beam
Replies: 8
Views: 370

Re: Blue Building Beam

Apologies, but you're speaking greek with me there. I have no clue how to compile stuff. I may even be able to deal with whatever you guys are talking, but I don't even know how to start, trying to get it done for this weekend. Still, thanks for this info. Bit late for that weekend, but maybe it wi...
by Cyp
18 Apr 2019, 21:03
Forum: Addon discussions
Topic: Blue Building Beam
Replies: 8
Views: 370

Re: Blue Building Beam

If you compile the game yourself, then maybe by removing the contents of renderConstructionEffect() in src/effects.cpp. Haven't tested, so not completely sure it's the right function.
by Cyp
07 Apr 2019, 08:59
Forum: Coding
Topic: My options for improving code speed.
Replies: 16
Views: 753

Re: My options for improving code speed.

faster ≠ works Changing slightly, so it could actually compile: // g++ -O3 -march=native -fno-strict-aliasing -DQ -s -o sqrtf sqrtf.cpp -Wall -Wextra -fno-math-errno #include <cmath> #include <iostream> float Q_rsqrt(float number) { int32_t i; float x2, y; const float threehalfs = 1.5F; x2 = number ...
by Cyp
06 Apr 2019, 20:02
Forum: Coding
Topic: My options for improving code speed.
Replies: 16
Views: 753

Re: My options for improving code speed.

Might be fairer to compare to sqrtf than to sqrt. I'd naïevely guess sqrtf to be faster and more accurate than Q_rsqrt.

I'm not sure square root calculations are the main bottleneck in the game.
by Cyp
28 Mar 2019, 19:20
Forum: Coding
Topic: My options for improving code speed.
Replies: 16
Views: 753

Re: My options for improving code speed.

The books sound out of date. It's usually better to declare variables as local as possible to help humans reading the code, but it shouldn't make a difference for modern compilers. Unless it's complex C++ variables which may implicitly allocate/free memory, in which case it can sometimes be slightly...
by Cyp
26 Mar 2019, 12:23
Forum: News and announcements
Topic: Release 3.3.0 beta 1
Replies: 86
Views: 9672

Re: Release 3.3.0 beta 1

Maybe dump every danger map, with the hash as the filename (and hope it doesn't fill up the drive before it desynchs).

The factor is just a pseudorandom number, so each cell has a different factor contributing to the hash.
by Cyp
18 Mar 2019, 20:08
Forum: News and announcements
Topic: Release 3.3.0 beta 1
Replies: 86
Views: 9672

Re: Release 3.3.0 beta 1

In the first log, it says that one client called gameRand() somewhere, while the other client didn't. If it's reproducible, it's possible to add a syncDebugBacktrace call to log where it was called from (might slow the game down, not sure). In the second log, it says the clients disagreed on the che...
by Cyp
16 Mar 2019, 09:19
Forum: Development
Topic: ImGui
Replies: 11
Views: 734

Re: ImGui

Looks interesting. One issue — as far as I can tell, ImGui has the same major problem that Warzone 2100 currently has — if clicking twice between frames, then at least one click is ignored, and the mouse position at the time of clicking is ignored. This often results in having to click about 5-10 ti...
by Cyp
08 Mar 2019, 08:55
Forum: News and announcements
Topic: Release 3.3.0 beta 1
Replies: 86
Views: 9672

Re: Release 3.3.0 beta 1

Does it work for you if you remove line 44 from lib/framework/wzstring.h?

Code: Select all

-    WzUniCodepoint& operator=(const WzUniCodepoint& ch) { _codepoint = ch._codepoint; return *this; }
Edit: Reported to work on IRC.
by Cyp
27 Feb 2019, 12:31
Forum: News and announcements
Topic: 3.3.0 (Beta) Multiplayer issues
Replies: 16
Views: 3251

Re: 3.3.0 (Beta) Multiplayer issues

When playing in mutli player mode and having a high selection mode of things with the mouse it often takes 3-4 clicks to make it activate the item you want it too. The mouse is very inaccurate To the point it is slowing player (me) down dramaticaly, Please fix this sloppy mouse … It's always been h...
by Cyp
23 Feb 2019, 08:28
Forum: Technical Help / Troubleshooting
Topic: Ubuntu 18.04 fails to compile
Replies: 1
Views: 232

Re: Ubuntu 18.04 fails to compile

Not sure. Try qtscript5-dev if you don't have it already.
by Cyp
21 Feb 2019, 19:50
Forum: News and announcements
Topic: Release 3.3.0 beta 1
Replies: 86
Views: 9672

Re: Release 3.3.0 beta 1

Yes, see http://developer.wz2100.net/wiki/CompileGuideLinux

To get the right version:
git checkout 3.3.0-beta1