Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add tab with NPC zones #27

Open
3 tasks
dd84ai opened this issue Jul 8, 2024 · 1 comment
Open
3 tasks

Feat: add tab with NPC zones #27

dd84ai opened this issue Jul 8, 2024 · 1 comment
Labels
fl-configs lang-golang Requires dealing with golang intensively lang-templ Usually front part can be acomplished with tempo-go alone wontfix This will not be worked on

Comments

@dd84ai
Copy link
Member

dd84ai commented Jul 8, 2024

Features to do:

How to do

Adding such tab is done out of next actions:

  • map the data in configs for reading, but this step is already done
  • add in fl-configs/configs/configs_export/npc_zones.go file. Extract in it simple structures information (as array usually) out of mapped configs for frontend render
    • Add it being part of type Export struct file exported on function export i think.
    • npc_zones_test.go file is expected to be written for simple unit testing that it is done correctly and easier debugging things at this stage
  • add in fl-darkstat/darkstat/front/npc_zones.templ file for how it will be rendered in html. Write tab in more or less same way as lets say "Ammo" tab.
    • Ensure if necessary that on row click you shown information you wish in bottom table and in infocard section. Infocard section could be showing any arbitary information you wish if the entity is not having its own infocard.
  • forward exported data from configs_export in darkstat linker file (linker.go) to be connected with templ renderer (pretty much router file). Add which url it will have there. It should be added twice, for default shown useful only and for showing all on button "Show all"
  • Add button for tab into shared.templ file, there is some function with all buttons of menu
  • see that on task dev:watch shown dev live local server, it works as expected, u can click the tab and see content as expected

Detailed info about npc zone

[zone]
nickname = Liberty_Rogues_Encounter01
pos = 7000, 0, -42500
shape = SPHERE
size = 2000
visit = 1
comment = .
sort = 99.5
toughness = 1
density = 1
repop_time = 10
max_battle_size = 1
pop_type = field_patrol
relief_time = 120
encounter = rogue_d2_encounter02, 1, 1
faction = fc_lr_grp, 1
Music = music_iw_danger



density = max amount of ships
max_battle_size = 1 (max amount of ships when player in battle)
repop_time = 10
respawn_time = (1-ships/)repoptime


[zone]
nickname = Liberty_Rogues_Encounter02
pos = 33000, 0, -45000 //output
shape = SPHERE  //output 
size = 2000   // output
visit = 1
comment = .
sort = 99.5
toughness = 1  // not used
density = 1 // max amount of ships
repop_time = 10 // respawn speed
max_battle_size = 1 // max amount in battle
pop_type = field_patrol // not used
relief_time = 120 // respawn time after killed
encounter = rogue_d2_encounter01, 1, 1 // type, difficulty, chance to encounter. tied to [Encounter]
faction = fc_lr_grp, 1
Music = music_iw_danger

[EncounterParameters]
nickname = rogue_d2_encounter01
filename = missions\encounters\new_encounters\rogue_d2_encounter01.ini
@dd84ai dd84ai mentioned this issue Jul 8, 2024
39 tasks
@dd84ai dd84ai changed the title PVE encounters add tab with PVE encounters Jul 16, 2024
@dd84ai dd84ai added lang-golang Requires dealing with golang intensively fl-configs lang-templ Usually front part can be acomplished with tempo-go alone labels Jul 16, 2024
@dd84ai dd84ai changed the title add tab with PVE encounters Feat(fl-configs): add tab with PVE encounters Jul 16, 2024
@dd84ai dd84ai moved this to Todo in @dd84ai's Dark Tools Jul 17, 2024
@dd84ai dd84ai removed the status in @dd84ai's Dark Tools Jul 17, 2024
@dd84ai dd84ai added the wontfix This will not be worked on label Oct 26, 2024
@dd84ai
Copy link
Member Author

dd84ai commented Dec 15, 2024

Bolte — Today at 10:37 AM
Dark, are you planning to add functionality to Darkstat to be able to determine locations of NPC ships etc for reputation alterations?

Like if I selected a faction, it would list map coords of NPCs I could use to either negatively or positively affect the rep?
Darkwind The Dark Duck — Today at 10:38 AM
By method of destroying them?
Basically npc zones
Bolte — Today at 10:38 AM
Yeah, doesn't have to be just ships I guess
Just a way to look at a faction and say these locations on the map to find them to improve or reduce reputation
Would then be easier for anyone to nudge reps the way they want
Darkwind The Dark Duck — Today at 10:41 AM
No, I don't plan such thing
#27
At most I thought potentially adding tab with disco specific PvE zones with mass spam of difficult npcs
But I hesitate because they don't look like going to maintain it
GitHub
Feat(fl-configs): add tab with PVE encounters · Issue #27 · darklab...
add PVE encounters tab https://discoverygc.com/forums/showthread.php?tid=198834& https://discoverygc.com/forums/showthread.php?tid=202264 start port wiki is very useful https://the-starport.com...
Feat(fl-configs): add tab with PVE encounters · Issue #27 · darklab...
Darkwind The Dark Duck — Today at 10:42 AM
To make it useful it would need printing chances of occurrences
Many npc zones are having them very rare appearing
Bolte — Today at 10:42 AM
Just a bit of a pain sometimes to know where to go and who to shoot to nudge reps the way you want, some mods hide their best gear behind reps for example.

Wouldn't it just be a matter of looking at a faction and then looking at the rep tables to list the ones with most impact to that factions rep?
Darkwind The Dark Duck — Today at 10:43 AM
That is why printing PvE encounters was having a point. They were made for high chance of npcs
Darkwind The Dark Duck — Today at 10:46 AM
In general your idea is extension of GitHub issue I linked above.
I thought about such generic approach too

But as I mention its proper implementing will require printing chances of spawning properly too then

Research is required I think on this topic
I did not find previously how to do that reliably
( 🙈 I try with DarkStat doing only polishing and bug fixes tbh
List of feature requests a bit infinity for me to handle)
I moved onto online nav map remake
Darkwind The Dark Duck — Today at 10:56 AM
I more thought implementing it from the point of mass killing for npc rewards
I think what you voiced is a good plan how feature should be made instead
Making it generic npc zones search will make it having more sense (as no dependency is present if smth is maintained)
Npc zones is already even parsed data in fl-configs ^^
But still this feature will require preferably some % printed for chances of encounter and in which amount
Bolte — Today at 11:01 AM
I mean it doesn't have to be that elaborate
Pointing a player in the right direction would be good enough to save them research time
And point them to the right system/area
Darkwind The Dark Duck — Today at 11:02 AM
Legit point
Darkwind The Dark Duck — Today at 11:03 AM
^
^ with such thing we get close to the level where darkstat would have shown every little aspect of the game
A concern can araise
Should we show it, or we show too much info, as nothing unknown remains
Bolte — Today at 11:04 AM
Those who want to spoil things can
Up to them
I have the similiar concerns about my own composer as it would include a 1 click extractor for any ship, shield, engine etc
Darkwind The Dark Duck — Today at 11:07 AM
Good answer.
I will record our conversation summarization to the GitHub issue above and change direction of its development goal accordingly for the planned feature at some point

@dd84ai dd84ai changed the title Feat(fl-configs): add tab with PVE encounters Feat(fl-configs): add tab with PVE zones (mark those ones which are PVE encounters) Dec 15, 2024
@dd84ai dd84ai changed the title Feat(fl-configs): add tab with PVE zones (mark those ones which are PVE encounters) Feat(fl-configs): add tab with NPC zones Dec 15, 2024
@dd84ai dd84ai changed the title Feat(fl-configs): add tab with NPC zones Feat: add tab with NPC zones Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fl-configs lang-golang Requires dealing with golang intensively lang-templ Usually front part can be acomplished with tempo-go alone wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant