Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)
Total Members Voted: 1425
Quote from: Shield on March 07, 2013, 04:42:32 PMIs there anyway of increasing the strength of the field?Yes, with the current settings changing the constant INVERSE_GRAVITY will alter the field strength.For reference, an explanation on the constants: private static float FIELD_RANGE = 1000f;This sets at what range the field will begin to have an effect on objects. Depending on the other settings, the effect is likely to be negligible at this distance. private static float FIELD_STRENGTH = 0.00000005f; private static float FIELD_STRENGTH_CONSTANT = 6f; private static float FIELD_STRENGTH_SQUARED = 3f;These are the original field strength constants and ones for previous implementations I made. They are all unused in this iteration. private static boolean MUTUAL_GRAVITY = false;This determines whether the Kurmaraja is affected by the gravitational forces it generates. If so, the force is split depending on the respective masses of the Kurmaraja and what it is affecting. Produces some odd results due to the disproportionate mass of projectiles to ships (missile surfing is quite entertaining ) and the implementation of engine thrust (which negates the force entirely). private static boolean GRAVITY_PROPORTIONAL_TO_MASS = false;This determines whether the field operates as a direct reversal of normal gravity (where greater masses generate greater forces) or whether the force is inversely proportional to the objects mass. Given the original function of the field I have it set to the inverse so it is more effective against projectiles and less so against ships. private static float PROPORTIONAL_GRAVITY = 0.1f; private static float INVERSE_GRAVITY = 10000f;These are the field strengths of the proportional to mass and inversely proportional implementations, respectively, and are what you were looking for. private static float DISTANCE_WEIGHT = 1f;This is simply a constant to scale the effect of distance to your taste.I'm not trying to foist this off on anyone, by the way. I simply found the idea of the system intriguing, wanted to test the limits of what could be done with it, and was pleased enough with the result that I wanted to share it.
Is there anyway of increasing the strength of the field?
Spoiler"How are we going to find crewmen that are willing to serve aboard this thing? You're talking the whole load here - potential gamma ray exposure, ambient phasic bleed lacerations to DNA... I'd put crew life expectancy around two months at most. Not even Deadbloods are going to want to climb into the airlocks on this... this torture instrument! You cancelled Project Lucifer yourself, Sir - although I don't mean to imply-"Roland Augustmoon leaned forward in his ostentatious chair, unimaginably expensive woodwork from Lodestone's resource-rich past creaking in protest. It wasn't a sight you could get used to easily - those charismatic, crow's feet-lined eyes... and then the cold light shimmering from within, those orbs - too *small* for their sockets, silently observing you. The chief designer swallowed, making a noise that easily filled the room. The ship model hovered over the table surface in an exploded view - pieces fitting together perfectly, joined by the metaphasic flux conduits that streamed out from the Lucifer Generator and filled the entire vessel. A spaceship, he knew, that would inevitably poison the life out of its crew."We don't deal in moral absolutes here at Blackrock, chief designer. Are you suggesting that there is some sort of tradeoff here that... we shouldn't be prepared to make?""N-no, Sir Augustmoon. I'm just saying that it will be an enormous resource drain on any fleet willing to accept the obvious risks. Why would we want to strain our omnifacs with a new blueprint, when we already have the Nevermore line in steady production, with combat protocols already trialed in live combat, the Sector already spreading rumors-""The Nevermore guarantees nothing. Only this can guarantee... that capital ships become a liability in the Sector. This is everyone's loss, and everyone's gain, Mr. Wondermere. This proves that we are done being intimidated by the snivelling Tri-Tachyon hypocrites and their Domain battlestations. It will be like a sword hanging over their heads, tied by a thin string, ready to snap."The Chief Designer nodded quickly, and gathered his papers, eager to leave the room."I will notify the committee, then... and call a meeting in two hours," he said. He could feel Augustmoon's gaze creeping up the nape of his neck as he waited for the doors to slide open."Like a sword hanging over all our heads," he thought, closing his eyes as he stepped outside into the dry air.[close]
Funnily enough, its built-in weapon is named the Sword of Damocles!
Alex on multiplayer
So what file would be edited to do the changes, the subsytem file?
I want that. I need that. Crew be damned.Quote from: Shield on March 08, 2013, 03:42:33 PMSo what file would be edited to do the changes, the subsytem file?Go to the mod folder, then to data\shipsystems\scripts, open GravityField.java, and replace the apply function with mine.