I guess I'll have to grab the compile environment this evening (as I was planning to do regardless) and make a patch for the function so that it could use more entriescim wrote:It wouldn't break it, but only the first 9 entries will get used whatever they're called, and always at the same kill counts.Zireael wrote:Admiral, would adding more rank names in description.plist break the DisplayRatingStringFromKillCount function in core?
Various ideas, OXP and main game?
Moderators: winston, another_commander
Re: Various ideas, OXP and main game?
Re: Various ideas, OXP and main game?
A patch was made and compiled and tested - d'ya want it, team?
- Zark Montor
- Competent
- Posts: 42
- Joined: Thu Jan 02, 2014 1:06 am
- Location: Sevenoaks, Kent, UK
Re: Various ideas, OXP and main game?
So you've already created a patch for the ratings? Wow, quick much?
Yeah, give it to me baby!!
what's it do, and how's it work?
Yeah, give it to me baby!!
what's it do, and how's it work?
I have returned! Less annoying and still enjoying the mighty Oo!
1.86 on self reconned dell studio xps thru Pep 8/64. Runs very well.
Nice to see its still well supported. Oo, Suits you, Sir!
1.86 on self reconned dell studio xps thru Pep 8/64. Runs very well.
Nice to see its still well supported. Oo, Suits you, Sir!
Re: Various ideas, OXP and main game?
The patch adds the Skilled (128), Venomous (1024) and Fatal (4000) ranks.
I will upload it to GitHub this evening.
The question was directed more at a_c and cim.
If the patch gets pulled into the main source, all you'd have to do is grab the next nightly. If not, you'd need to set up the compiler and compile from my fork...
Still thinking whether we should have something after ELITE or not.
I will upload it to GitHub this evening.
The question was directed more at a_c and cim.
If the patch gets pulled into the main source, all you'd have to do is grab the next nightly. If not, you'd need to set up the compiler and compile from my fork...
Still thinking whether we should have something after ELITE or not.
-
- Quite Grand Sub-Admiral
- Posts: 6680
- Joined: Wed Feb 28, 2007 7:54 am
Re: Various ideas, OXP and main game?
Personally, I would not be interested in a patch that adds two, three or more ranks in the current implementation. Apart from the opinion I maintain that it adds nothing really to the gameplay, I can see someone else coming in a month or two and asking for more ranks or, alternatively, asking for ranks to be removed and this discussion will happen all over again.Zireael wrote:The patch adds the Skilled (128), Venomous (1024) and Fatal (4000) ranks.
Now, if you could provide a patch that reads both rank names and rank values directly from descriptions (possibly by changing the array format of rating to a dictionary format and changing core code accordingly to read everything from that dictionary), then it means that ranks and ratings can be defined as one desires from descriptions without having to recompile the game and then, yes, I would be interested.
If you can implement the above proposal, then you could just OXP this.Still thinking whether we should have something after ELITE or not.
Re: Various ideas, OXP and main game?
That was something I was actually thinking of yesterday, so yeah, I'll try it sometime this week.Now, if you could provide a patch that reads both rank names and rank values directly from descriptions (possibly by changing the array format of rating to a dictionary format and changing core code accordingly to read everything from that dictionary), then it means that ranks and ratings can be defined as one desires from descriptions without having to recompile the game and then, yes, I would be interested.
Re: Various ideas, OXP and main game?
Here's what I came up with, alas, not making a patch yet because I don't know how to access (display on screen) this dictionary.
Help?
Code: Select all
NSArray *ratingNames = nil;
NSArray *ratingKills = nil;
ratingNames = [[UNIVERSE descriptions] oo_arrayForKey:@"rating"];
ratingKills = [[UNIVERSE descriptions] oo_arrayForKey:@"kills"];
NSDictionary *OORatingAndKillString = [[NSDictionary alloc] initWithObjects: ratingKills forKeys: ratingNames
Re: Various ideas, OXP and main game?
Perhaps the amount of kills and descriptions could all be defined in a .plist file, and the code just take the references from there? I'm at work at the moment so I don't have access to the source from here, but if you look for where the code gets the number of kills from and tell it to read this from a .plist file and then cross reference the kills to a description in the .plist file, this would work?
Desktop PC: CPU: Intel i7-4790K Quad Core 4.4GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1080Ti RAM: 32GB DDR3
Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
Re: Various ideas, OXP and main game?
This may just be a shot in the dark (given my almost non-existent knowledge of coding), but for the idea of owning a fleet, perhaps you could make it such that the purchase cost is zero for switching ships? Obviously not all ships, but ships you own, wherever that would be. After that, the only other possible problem that I can think of would be whether or not the ship you "sold" when you switched ships would still have all the pieces of equipment on it...
Re: Various ideas, OXP and main game?
If you just want to own multiple ships and be able to switch between them, there is the Extended Shipyards OXP for 1.77 or later. It hasn't been worked on for a while but I don't think it needs that much to finish it off.
Re: Various ideas, OXP and main game?
So uh where do I plug my dictionary in for it to work?
Re: Various ideas, OXP and main game?
Probably the dictionary is a red herring if you're doing it with two separate arrays in description.plist. Instead, assuming that the two arrays remain in ascending order of kills:Zireael wrote:So uh where do I plug my dictionary in for it to work?
1) Iterate over the ratingKills array until you find an index with more kills than the player currently has.
1b) If you don't find any such index in the array, then the player is at maximum rank.
2) Subtract one from that index, and select the string with that number from the ratingNames array.
3) Get DisplayRatingStringFromKillCount to return that string rather than the one it currently does.
- Keeper
- ---- E L I T E ----
- Posts: 273
- Joined: Fri Feb 01, 2013 7:44 am
- Location: Indian Hills, Nevada, USA
Re: Various ideas, OXP and main game?
Other possible ranks that come to mind: "Notorious", "Infamous" ... and dare I say "Belgian"?
Re: Various ideas, OXP and main game?
Desktop PC: CPU: Intel i7-4790K Quad Core 4.4GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1080Ti RAM: 32GB DDR3
Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
- Zark Montor
- Competent
- Posts: 42
- Joined: Thu Jan 02, 2014 1:06 am
- Location: Sevenoaks, Kent, UK
Re: Various ideas, OXP and main game?
So, the general consensus on the "Buy your own Asteroid/Fleet" is that the core Oolite package will probably change in the near future to allow such OXPs to come into being, extra ranks are 50/50 because some users might prefer the original untampered ranks.
Well, it's nice to see that some of the high profile members weigh in with their opinions.
I was going to ask a couple of other questions;
Firstly, is there going to be any follow ups to the Assassins Guild OXP? I'd like to go a bit Keyser Soze, and wipe the guild out, knowing what they know about my work leaves me a bit uncomfortable...
Is there any way to make donations to Oolite development? I'm not talking loadsa dough, but if we could donate to the development team and maybe some of the creators of the top end OXPs, we might encourage them to continue their fine work!
Regards,
ZM
Well, it's nice to see that some of the high profile members weigh in with their opinions.
I was going to ask a couple of other questions;
Firstly, is there going to be any follow ups to the Assassins Guild OXP? I'd like to go a bit Keyser Soze, and wipe the guild out, knowing what they know about my work leaves me a bit uncomfortable...
Is there any way to make donations to Oolite development? I'm not talking loadsa dough, but if we could donate to the development team and maybe some of the creators of the top end OXPs, we might encourage them to continue their fine work!
Regards,
ZM
I have returned! Less annoying and still enjoying the mighty Oo!
1.86 on self reconned dell studio xps thru Pep 8/64. Runs very well.
Nice to see its still well supported. Oo, Suits you, Sir!
1.86 on self reconned dell studio xps thru Pep 8/64. Runs very well.
Nice to see its still well supported. Oo, Suits you, Sir!