Page MenuHomeWildfire Games

phosit
User

Projects

User Details

User Since
Mar 25 2022, 1:22 PM (108 w, 4 h)

Recent Activity

Today

phosit updated the diff for D5189: Turn the FLOODFILL macro in to a function.

Don't use if constexpr in a lambda. I think that lead to the error.
Again change variable names and comments.

Fri, Apr 19, 6:17 PM

Yesterday

phosit updated the diff for D5189: Turn the FLOODFILL macro in to a function.

Change naming and comments a bit.

Thu, Apr 18, 9:37 PM
phosit planned changes to D4770: Multiplayer saved games.

It should be visible by non-host-clients if it's a savegame. (It's not)

The information if a savegame is loaded is with this implementation only available to the controler.
The easiest solution would be to make the loadsaved-ness an init-attribute / setting like wraitii suggested. That requires me to rewrite and test much again.

Thu, Apr 18, 7:43 PM
phosit added a comment to D5256: Remove Roman numerals from bot names.

Before this diff the "forat translation" is allways done. That's almost certainly an issue.

Not sure what you mean by this, though. What should I change?

Thu, Apr 18, 7:16 PM
phosit added a comment to D5256: Remove Roman numerals from bot names.

What do you suggest? Something like this?

GameSettings.prototype.Attributes.PlayerName.prototype.CountLabel =
	translate("%(name)s (%(count)s)");

Yes, almost. I assume the "s" is for strings. count is an integer so it should be translate("%(name)s (%(count)i)").

Thu, Apr 18, 5:45 PM
phosit added a comment to D5189: Turn the FLOODFILL macro in to a function.

Have you measured performance for those changes?

It's nearly the same:

Thu, Apr 18, 5:32 PM

Wed, Apr 17

phosit added a comment to D5256: Remove Roman numerals from bot names.

Do you want me to change it? I thought ' (${count})' looked better than " (" + count + ")".

No, I'm ok with that.

Wed, Apr 17, 9:08 PM
phosit added a comment to D5256: Remove Roman numerals from bot names.

This inline went missing

Wed, Apr 17, 8:19 PM
phosit added a comment to D5256: Remove Roman numerals from bot names.

I never saw Template Literals in this codepase. I don't object it. :)

Wed, Apr 17, 6:28 PM
phosit published D5258: Adopt the generator based interface by all maps for review.
Wed, Apr 17, 5:48 PM
phosit updated the diff for D5220: Allow to use a generator as MapGenerator.

Reduce "test_RecoverableError.js"
It should pass the tests now.

Wed, Apr 17, 5:22 PM

Tue, Apr 16

phosit updated the diff for D2525: Define auto-gather/-build ranges in template..

revert

Tue, Apr 16, 9:21 PM
phosit added a comment to D2525: Define auto-gather/-build ranges in template..

It's not a big problem :)

Tue, Apr 16, 9:18 PM

Mon, Apr 15

phosit added a comment to D2525: Define auto-gather/-build ranges in template..

Upload the earlier patch (that would be 11164) again. I could do that tomorow.

Mon, Apr 15, 10:04 PM

Sat, Apr 13

phosit added a comment to D4770: Multiplayer saved games.

Sometimes there is a long "tooltip"

Sat, Apr 13, 9:16 PM
phosit added a comment to D4770: Multiplayer saved games.

It should be visible by non-host-clients if it's a savegame.

Does anybody have an idea where this could be shown?
An idea was to put it near the "cheats enabled" or "rated game" warnings but there is litle space.

Sat, Apr 13, 7:27 PM
phosit committed rP28066: Use templates instead of macros to restrict access to the VFS.
Use templates instead of macros to restrict access to the VFS
Sat, Apr 13, 7:15 PM
phosit closed D5195: Use templates instead of macros to restrict access to the VFS.
Sat, Apr 13, 7:15 PM
phosit added a comment to D5220: Allow to use a generator as MapGenerator.

I think i'll commit it with the deprecated path. We can decide later in the release cycle if we want to keep it. Propably dependant on how long it takes. And propably the will be breaking rmgen changens.

Sat, Apr 13, 12:14 PM
phosit updated the diff for D5220: Allow to use a generator as MapGenerator.

MakeExportable hasn't to be called from js

Sat, Apr 13, 11:55 AM
phosit updated the diff for D5189: Turn the FLOODFILL macro in to a function.

Remove #undef FLOODFILL

Sat, Apr 13, 10:10 AM
phosit added a comment to D5189: Turn the FLOODFILL macro in to a function.

Have you measured performance for those changes?

Sat, Apr 13, 10:07 AM

Fri, Apr 12

phosit committed rP28065: Improve batch training time tech description.
Improve batch training time tech description
Fri, Apr 12, 8:40 PM
phosit closed D5031: Fix batch training time tech description.
Fri, Apr 12, 8:40 PM
phosit updated the diff for D4770: Multiplayer saved games.

Revert embarrassing things.

Fri, Apr 12, 7:29 PM
phosit added inline comments to D5257: Fixes water foam texture size after scale.
Fri, Apr 12, 7:20 PM
phosit updated the diff for D3807: [WIP] Get a promise when starting a GUIpage.

Use promises for GUIpages (see summary)
Remove things related to multithreading.
Use std::queue instead of std::vector because of iterator invalidation.

Fri, Apr 12, 7:09 PM
phosit commandeered D3807: [WIP] Get a promise when starting a GUIpage.
Fri, Apr 12, 6:13 PM

Wed, Apr 10

phosit planned changes to D4770: Multiplayer saved games.

Don't look at it it's embarrassing ^^

Wed, Apr 10, 6:43 PM
phosit updated the diff for D4770: Multiplayer saved games.

Hide the button in single player
Don't unlock civ-selection when changing assigement

Wed, Apr 10, 6:37 PM

Tue, Apr 9

phosit updated the diff for D4770: Multiplayer saved games.

rebase

Tue, Apr 9, 8:00 PM

Sun, Apr 7

phosit added a comment to D4770: Multiplayer saved games.

We noticed bugs while testing:
When loading a game and changing starting position sometimes the civ column get's unlocked. (It should stay looked)
It should be visible by non-host-clients if it's a savegame. (It's not)
Loaded game should not be ranket. (We didn't acctually test that. I don't know the current behavior)

Sun, Apr 7, 6:40 PM

Fri, Apr 5

phosit added a comment to D4770: Multiplayer saved games.

Thank you for testing.
I testet "2 humans" localy with two clients.
I could use your help to test it using the lobby. I'll have time on sunday morning (untill 12:00 UTC+2) or evening (from 17:00 UTC+2)

Fri, Apr 5, 5:39 PM

Mon, Apr 1

phosit added inline comments to D5254: Shutdown mongoose in rl-interface gracefully.
Mon, Apr 1, 5:03 PM
phosit updated the diff for D5031: Fix batch training time tech description.

Rebase

Mon, Apr 1, 3:21 PM

Sat, Mar 30

phosit added inline comments to D5254: Shutdown mongoose in rl-interface gracefully.
Sat, Mar 30, 6:37 PM

Thu, Mar 28

phosit added a comment to rP27996: [Gameplay] Complete Naval Overhaul (UnitAI and Warship Classes).

How does this relate to #305?

Thu, Mar 28, 7:03 PM
phosit added inline comments to D5254: Shutdown mongoose in rl-interface gracefully.
Thu, Mar 28, 6:30 PM

Wed, Mar 27

phosit added inline comments to D5254: Shutdown mongoose in rl-interface gracefully.
Wed, Mar 27, 9:41 PM
phosit updated the test plan for D5254: Shutdown mongoose in rl-interface gracefully.
Wed, Mar 27, 5:41 PM
phosit updated the test plan for D5254: Shutdown mongoose in rl-interface gracefully.
Wed, Mar 27, 5:25 PM
phosit added a comment to D5254: Shutdown mongoose in rl-interface gracefully.
In D5254#223622, @Stan wrote:
Wed, Mar 27, 5:23 PM
phosit retitled D5254: Shutdown mongoose in rl-interface gracefully from Shutdown rl-interface gracefully to Shutdown mongoose in rl-interface gracefully.
Wed, Mar 27, 12:52 PM
phosit added a comment to D4770: Multiplayer saved games.
In D4770#223608, @Stan wrote:

Well, can you break it? (Corrupted savegames, forged ones, spamming buttons, accessing it from somewhere you shouldn't) ? Possible bugs with AIs, rejoin check etc

Wed, Mar 27, 12:17 PM
phosit added a comment to D5195: Use templates instead of macros to restrict access to the VFS.
In D5195#223604, @Stan wrote:

Well I would assume this changes the generated assembly which could be for the worst compared to macros. But I suppose it could / should be profiled.

Wed, Mar 27, 12:04 PM

Tue, Mar 26

phosit added a comment to D4770: Multiplayer saved games.

Can somebody take another look. pls.

Tue, Mar 26, 8:51 PM
phosit added a comment to D5031: Fix batch training time tech description.

@Freagarach are you ok with the current wording?

Tue, Mar 26, 8:46 PM
phosit updated the diff for D5195: Use templates instead of macros to restrict access to the VFS.

Use std::any_of

Tue, Mar 26, 7:02 PM
phosit added a comment to D5195: Use templates instead of macros to restrict access to the VFS.
In D5195#223594, @Stan wrote:

Dumb question, but doesn't that make the code slower?

Tue, Mar 26, 6:20 PM

Mon, Mar 25

phosit committed rP28059: Update library version missing in rP27980.
Update library version missing in rP27980
Mon, Mar 25, 8:00 PM
phosit closed D5230: Update library version missing in rP27980.
Mon, Mar 25, 8:00 PM
phosit updated the diff for D5195: Use templates instead of macros to restrict access to the VFS.

Copyright year

Mon, Mar 25, 7:12 PM

Sun, Mar 24

phosit published D5254: Shutdown mongoose in rl-interface gracefully for review.
Sun, Mar 24, 9:12 PM
phosit committed rP28056: Split the Shutdown function.
Split the Shutdown function
Sun, Mar 24, 1:48 PM
phosit closed D5148: Split Shutdown.
Sun, Mar 24, 1:48 PM
phosit updated the diff for D5222: Don't use a ScriptContext on the server.
  • fix typo
  • use exceptions
  • ignore some warnings from json_spirit
Sun, Mar 24, 12:36 PM

Sat, Mar 23

phosit updated the diff for D5148: Split Shutdown.

Rebase

Sat, Mar 23, 5:48 PM
phosit added a comment to D5240: Atlas Actor Viewer Toggle 3d.

If you zoom out (much), toggle the view and rotate the actor. There are artifacts.

This is a hard problem, I don't know if the orthogonal projection is interfering with rendering of "texture cubes" and "sky managers" (in source/renderer/SkyManager.cpp), so the screen isn't being cleared before the next frame is drawn.

Sat, Mar 23, 5:35 PM

Thu, Mar 21

phosit published D5253: Make CFsm a template for review.
Thu, Mar 21, 9:40 PM
phosit committed rP28053: Default many of CFsm's special functions and remove virtual specifires.
Default many of CFsm's special functions and remove virtual specifires
Thu, Mar 21, 6:48 PM
phosit closed D5249: Default many of CFsm's special functions and remove virtual specifires.
Thu, Mar 21, 6:48 PM

Wed, Mar 20

phosit added a comment to D5222: Don't use a ScriptContext on the server.
In D5222#223533, @sera wrote:

Thinking a bit more about player spoofing, it probably is a bad idea in the first place and extending the command protocol to have both a "user" and "player" id would probably make implementing co-op play a lot cleaner. Sure it's not the intended scope of this patch ...

Wed, Mar 20, 8:39 PM
phosit updated the diff for D5222: Don't use a ScriptContext on the server.

Use json_spirit

Wed, Mar 20, 7:46 PM
phosit added a comment to D5240: Atlas Actor Viewer Toggle 3d.

If you zoom out (much), toggle the view and rotate the actor. There are artifacts.

Wed, Mar 20, 6:56 PM

Mar 14 2024

phosit added a comment to D5222: Don't use a ScriptContext on the server.
In D5222#223495, @sera wrote:

IMO The behavior of the server shouldn't dependent on the simulation's init-atributes. Instead the controller should explicitly control the server.

allowCheats is an init-attribute, at least that's my take.

Is that also the case if we call it allowPlayerSpoofing?

Mar 14 2024, 9:09 PM
phosit added a comment to D5222: Don't use a ScriptContext on the server.

IMO The behavior of the server shouldn't dependent on the simulation's init-atributes. Instead the controller should explicitly control the server.

Mar 14 2024, 7:57 PM

Mar 13 2024

phosit updated the diff for D5222: Don't use a ScriptContext on the server.

rebase

Mar 13 2024, 2:33 PM
phosit updated the diff for D5250: Combine Frame functions.

Move the realTimeSinceLastFrame calculation back in to Frame.

Mar 13 2024, 12:24 PM

Mar 9 2024

phosit committed rP28048: Use std::function instead of inhereting from CNetFileReceiveTask.
Use std::function instead of inhereting from CNetFileReceiveTask
Mar 9 2024, 3:32 PM
phosit closed D5239: Use std::function instead of inhereting from CNetFileReceiveTask.
Mar 9 2024, 3:32 PM
phosit added inline comments to D5250: Combine Frame functions.
Mar 9 2024, 3:00 PM
phosit added a comment to D5240: Atlas Actor Viewer Toggle 3d.

Deduplicated default value vs initialised value.
Values are placed in the constructor,
in line with other code in the project.

Mar 9 2024, 1:17 PM
phosit added a comment to D5220: Allow to use a generator as MapGenerator.

elexis argues that i should change all the maps and remove the old way in this diff.

Mar 9 2024, 10:38 AM
phosit published D5250: Combine Frame functions for review.
Mar 9 2024, 9:43 AM

Mar 8 2024

phosit committed rP28046: Don't use std::shared_ptr<ScriptContext> in the CSimulation2.
Don't use std::shared_ptr<ScriptContext> in the CSimulation2
Mar 8 2024, 6:15 PM
phosit closed D5223: Don't use std::shared_ptr<ScriptContext> in the CSimulation2.
Mar 8 2024, 6:15 PM

Mar 7 2024

phosit updated the diff for D5239: Use std::function instead of inhereting from CNetFileReceiveTask.

Readd the test

Mar 7 2024, 9:35 PM

Mar 6 2024

phosit updated subscribers of D5220: Allow to use a generator as MapGenerator.
In D5220#223421, @sera wrote:
In D5220#223418, @sera wrote:

Currently you add another way to do the same thing but using the old way doesn't complain loudly, how are map authors supposed to know that they are supposed to migrate. When will the old way be removed?

My plan is to commit this before the release of a27; add a warning after the release of a27 and remove the old way after the release of a28.

Did some api break happen since A26? If so some more doesn't matter at all anymore and you could just go ahead with dropping the old one. If not why only warn after a27 is released, the earlier the better me thinks? If you plan to break the API next cycle, you could just commit this one without the old way with the rest of the anticipated breakage, right?

All breaking changes should be scheduled the same. e.g. Introduce the new thing in a27, deprecate the old thing in a28, remove the old thing after a28.
@marder @wraitii @Stan

Mar 6 2024, 9:23 PM
phosit added a comment to D5220: Allow to use a generator as MapGenerator.
In D5220#223418, @sera wrote:

So what is the plan?

My plan is to

  1. Learn rmgen
  2. Document the flaws
  3. Come up with a solution
  4. Convince other devs

xD

Mar 6 2024, 8:14 PM
phosit added a comment to D5220: Allow to use a generator as MapGenerator.
In D5220#223414, @sera wrote:

Also now that you drive generation from cpp why the need to call export map from js?

Mar 6 2024, 7:24 PM
phosit added a comment to D5220: Allow to use a generator as MapGenerator.
In D5220#223413, @sera wrote:

global is as good a name as rootedvalue or habakuk.

If run in a browser you also have "document" and "window", so multiple ones is not the issue. "document" and "window" are well crafted names. We have "Engine" and now you add "global", the latter sounds like something one comes up on a spur.

So the question is why does "Engine" not work here and if not can we come up with a better name than "global"?

Mar 6 2024, 3:54 PM
phosit added a comment to D5220: Allow to use a generator as MapGenerator.
In D5220#223411, @sera wrote:

global.g_Map

why not Engine.map?

Mar 6 2024, 2:52 PM
phosit added a comment to D5240: Atlas Actor Viewer Toggle 3d.
In D5240#223398, @Stan wrote:

@phosit is there a convention for floats : 1.0f, 1.f, 1f ?

Mar 6 2024, 11:19 AM
phosit updated the diff for D5220: Allow to use a generator as MapGenerator.

Adopt empire as an example.

Mar 6 2024, 11:09 AM

Mar 3 2024

phosit updated the diff for D5239: Use std::function instead of inhereting from CNetFileReceiveTask.

Add points at the end of comments

Mar 3 2024, 7:10 PM

Feb 28 2024

phosit updated the diff for D4770: Multiplayer saved games.

flatMap instead of map(...).flat()
{} instead of =

Feb 28 2024, 2:35 PM
phosit updated the diff for D4770: Multiplayer saved games.

copyright year
missing include
typo

Feb 28 2024, 11:42 AM
phosit added inline comments to D5240: Atlas Actor Viewer Toggle 3d.
Feb 28 2024, 10:31 AM

Feb 27 2024

phosit added inline comments to D5239: Use std::function instead of inhereting from CNetFileReceiveTask.
Feb 27 2024, 8:44 PM

Feb 26 2024

phosit published D5249: Default many of CFsm's special functions and remove virtual specifires for review.
Feb 26 2024, 8:59 PM
phosit published D5248: Fix wrong default in "scaleByMapArea" for review.

Now you can ;)

Feb 26 2024, 8:58 PM

Feb 25 2024

phosit committed rP28039: Remove the StateSet from FSM.
Remove the StateSet from FSM
Feb 25 2024, 3:06 PM
phosit closed D5236: Remove the StateSet from FSM.
Feb 25 2024, 3:06 PM
phosit updated the diff for D5148: Split Shutdown.

Rebase

Feb 25 2024, 11:24 AM
phosit reclaimed D5148: Split Shutdown.

Got more usefull with D5226.

Feb 25 2024, 11:12 AM
phosit updated the diff for D5226: [WIP] I tried to remove g_XmppClient.

Don't store the xmppClient in CGUIManager.

Feb 25 2024, 11:06 AM

Feb 21 2024

phosit updated the diff for D5220: Allow to use a generator as MapGenerator.

Use an Error.
Make it less branchy.
Move RunGenerator to ScriptFunction.
Prevent the "printing" from rmlib.

Feb 21 2024, 8:13 PM
phosit updated the diff for D5239: Use std::function instead of inhereting from CNetFileReceiveTask.

Add a test.
Use KiB more and include it's header.

Feb 21 2024, 1:55 PM
phosit added inline comments to D5239: Use std::function instead of inhereting from CNetFileReceiveTask.
Feb 21 2024, 1:49 PM
phosit updated the diff for D5236: Remove the StateSet from FSM.

Copyright year in NetServer.cpp

Feb 21 2024, 10:51 AM