-
Posts
17.575 -
Joined
-
Last visited
-
Days Won
557
Everything posted by Stan`
-
"Loading map data. Please wait" on single-player matches
Stan` replied to alindley's topic in Help & Feedback
You can't since you cannot reach that screen. You can disable persistent match settings or delete the matchsettings file too. i wonder if enabling a mod might work too -
You can download the files from the repository https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/art/textures/cursors change them, and put them in a mod of your own.
-
That's because the mines don't have the same name. You need to look for "ore" or "rock"
-
The preplaced buildings probably work because they down change ownership when they are being skirmish replaced.
-
Usually that's why we have a call on Ownershipchanged but maybe there is a message we're not listening to
-
The error means it cannot find the owner, (probably cause it doesn't have one) It's this code that fails: const color = QueryOwnerInterface(this.entity, IID_Player).GetColor(); cmpVisual.SetVariable("colorr", color.r); cmpVisual.SetVariable("colorg", color.g); cmpVisual.SetVariable("colorb", color.b); You can replace it with const cmpPlayer = QueryOwnerInterface(this.entity, IID_Player); if (cmpPlayer) { const color = cmpPlayer.GetColor(); cmpVisual.SetVariable("colorr", color.r); cmpVisual.SetVariable("colorg", color.g); cmpVisual.SetVariable("colorb", color.b); } but then since it cannot find the player it will not set the color
-
Weird because the second one is correct The first one registers a new interface for the engine. So it should never be called outside of the first initialisation of the component in the js file (Although you could create runtime components for nefarious purposes, I would advise against it) If the first one doesn't work, it means that whatever is calling that code doesn't have that component attached, which could mean the template is invalid.
-
less precise sorting in range manager
Stan` replied to real_tabasco_sauce's topic in Game Development & Technical Discussion
Well like anything it depends. Would need to be profiled. @wraitii had an optimization for the range manager here https://code.wildfiregames.com/D5022 not sure what it's worth. -
This one https://code.wildfiregames.com/D5006 Wraitii had a bunch of performance patches that might be worth looking at https://code.wildfiregames.com/search/query/1SOtiSQV9ik8/#R
-
Just a quick note another big performance improvement in A27 will be with the removal of spectre and meltdown mitigations in spidermonkey which slow considerably the js execution. wraitii did a few other improvements iirc but not sure which got it and which got reverted. The one about messages could potentially be good if it worked ^^"
-
It's okay. Perserverance is all you need Regarding your interrogation I think by default everything is INVALID_PLAYER = -1 You might also print this.entity so you know which is which. Ideally in one statement warn("entity: " + this.entity + " Owner: " + cmpFoundationOwnership.GetOwner()); Or use string interpolation warn(`entity: ${this.entity} Owner: ${cmpFoundationOwnership.GetOwner()}`); Maybe we forgot the edge case of QueryOwnerInterface not having an actual player
-
Well ent is not defined, and your setting the player to itself ^^ so it wouldn't change much
-
It's done in the foundation.js component. Basically your building goes through 3 filters preview| foundation| and nothing
-
Well it's possible the owner isn't set when we set the color, and so it sets gaia instead of something else. Although from your logs it looks like the color is correct
-
does this have any vampires or gods
Stan` replied to vampygirl699's topic in Introductions & Off-Topic Discussion
Most of the RTS stuff is already written, you just need to reskin units to be vampires and whatnot. And maybe some new buildings to fit more the theme -
Well first, you have to figure out when the code is called and with what params
-
The Guinterface forces a reload of the color, a bit like the on update That's why the color is changing. I'm wondering if we don't switch the color too early, causing the gaia color to be taken...
-
In order to make mods more maintenable, we recommend users only override functions they touch rather than the whole files. You would usually have a file named ~GuiInterface.js with only the modified functions. After the Guiinterface change ?
-
does this have any vampires or gods
Stan` replied to vampygirl699's topic in Introductions & Off-Topic Discussion
Yeah, with some art effort you could, probably needs some programming if you require special powers for units. -
Does it call it with a different color onupdate and the first time it's called ?
-
Does the other building have ParticlePlayerColor in its template ?
-
For the diplomacy color https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js#L903 you might need to add the IID_ParticlePlayerColor to that function (Create a file with just that function that will be called after the actual one) GuiInterface.prototype.UpdateDisplayedPlayerColors = function(player, data) { let updateEntityColor = (iids, entities) => { for (let ent of entities) for (let iid of iids) { let cmp = Engine.QueryInterface(ent, iid); if (cmp) cmp.UpdateColor(); } }; let cmpRangeManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager); let numPlayers = Engine.QueryInterface(SYSTEM_ENTITY, IID_PlayerManager).GetNumPlayers(); for (let i = 1; i < numPlayers; ++i) { const cmpDiplomacy = QueryPlayerIDInterface(i, IID_Diplomacy); if (!cmpDiplomacy) continue; QueryPlayerIDInterface(i, IID_Player).SetDisplayDiplomacyColor(data.displayDiplomacyColors); if (data.displayDiplomacyColors) cmpDiplomacy.SetDiplomacyColor(data.displayedPlayerColors[i]); updateEntityColor(data.showAllStatusBars && (i == player || player == -1) ? [IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer, IID_StatusBars] : [IID_Minimap, IID_RangeOverlayRenderer, IID_RallyPointRenderer, IID_ParticlePlayerColor], cmpRangeManager.GetEntitiesByPlayer(i)); } updateEntityColor([IID_Selectable, IID_StatusBars], data.selected); Engine.QueryInterface(SYSTEM_ENTITY, IID_TerritoryManager).UpdateColors(); }; When it's being constructed, or after it's been constructed ?
-
That's because the foundation actor doesn't take it into account You have to change https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/simulation/templates/special/filter/foundation.xml probably by adding <ParticlePlayerColor merge=""/> Yeah we probably need a hook for the diplomacy color thingy, I'm not sure whether it sends an event message or not
-
I also tried to experiment with the add blending for particle but all I managed to get was a glow
-
Use as much pure white as you can for the texture