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

Complementing changes to engine 'Implement Drive and Afterburner' #129

Closed
wants to merge 1 commit into from

Conversation

royfalk
Copy link
Contributor

@royfalk royfalk commented Oct 25, 2024

This complements vegastrike/Vega-Strike-Engine-Source#896

  • Add support for AfterburnerUpgrade
  • Modify Llama.begin with reactor03 and correct SPEC capacitor. This will allow SPEC with game start.
  • Remove Llama.begin from units.json.

Thank you for submitting a pull request and becoming a contributor to Vega Strike: Upon the Coldest Sea.

Please answer the following:

Code Changes:

Modify Llama.begin with reactor03 and correct SPEC capacitor. This will allow SPEC with game start.
Remove Llama.begin from units.json.
@royfalk royfalk self-assigned this Oct 25, 2024
@evertvorster
Copy link
Contributor

Hi there.
I installed the task_drives branch of Assets, and patched it with #128
For the engine I installed branch task_real_drive_comp of Engine, and patched that with #897 from the Engine repo.

This PR does solve the inability to buy a jump drive, and allows you to run SPEC continuously.
It's also a prerequisite to allow the other PR in engine to work.

So, as far as that goes, this PR is good to go from my perspective.

I am still having the strange issue where I thought that I had no flight controls when loading a newly saved new campaign. I was wrong, there is flight controls, just very, very little.
This points to silly values in the save file, and upon inspection there are indeed silly values.
I see that in the save file created with this PR the unit is still called llama.begin, and rather than one value in the various governors (45) for the flight controls there are now three values separated by a slash. (0.01/0.01/0.01)

Serialized xml for a saved game created by the 0.8.x version of the game engine:
Llama.begin.csv

Serialized xml for a saved game created by the current PR in Assets and Engine:
Llama.begin.csv

With these branches installed, the screen variable in vegastrike.config is being ignored, not sure if that will go away when I run master again.

@royfalk
Copy link
Contributor Author

royfalk commented Oct 25, 2024

there are now three values separated by a slash. (0.01/0.01/0.01)

That's a bug introduced by #893. I'll take a look at it. You can go ahead and open a bug and assign it to me.

With these branches installed, the screen variable in vegastrike.config is being ignored, not sure if that will go away when I run master again.

Yes it is. You should now edit config.json. Same for resolution.
I'm in the process of moving away from vs.config (xml) into more readable json files. I'll also dump all the obscure advanced settings into a separate 'advanced' file.

@evertvorster
Copy link
Contributor

Thanks for the tip. I created the requested bug report.

As for editing the config.json...
There seems to be almost nothing in /usr/share/vegastrike/config.json:

{
"general": {},

"graphics": {
    "resolution_x": 2560,
    "resolution_y": 1600,
    "screen": 0
},
"advanced": {}
}

There is no other config.json anywhere that I could find that is related to vegastrike.
Some guidance on how to edit this file, and where it is supposed to be located, as well as some examples would be greatly appreciated.

@royfalk
Copy link
Contributor Author

royfalk commented Oct 25, 2024

There seems to be almost nothing in /usr/share/vegastrike/config.json

It's a work in progress. You can't just move everything over. The C++ code needs to reflect this.

Also, I plan on moving things slowly and thinking about what goes where.

Also renaming and deleting settings.

For now, what you can edit is what you see.

@royfalk
Copy link
Contributor Author

royfalk commented Nov 22, 2024

I've moved the changes to #134.
With the introduction of the rather drastic #133 , changes made to the old asset units file are very out of date.
Specifically, we made numerous changes to both units.json and ships.json with a script.

Also, it seems we have two PR's to match vegastrike/Vega-Strike-Engine-Source#896, so I picked #134 instead.

Closing.

@royfalk royfalk closed this Nov 22, 2024
@royfalk royfalk deleted the task_drives branch November 22, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants