You are not logged in.

  • "themilkman" started this thread
  • United States

Posts: 65

Activitypoints: 405

Date of registration: Sep 15th 2008

Reputation modifier: 5

Level: 29 [?]

Experience: 241,240

Next Level: 242,754

Thanks: 2

  • Send private message

member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month

1

Monday, July 4th 2011, 1:37pm

KP Lol

KP Lol is a Freelancer plugin I have been working on for the past year or so. It adds a console to the game, where you can issue commands. It has a very big list of commands, and I designed it with the intention that it could help other people design DLL plugins or even help modders debug their mods.
Also, KP Lol will only work in singleplayer. It will refuse to work if you are on a multiplayer server.
So no worrying about cheating =D


Some of its features other than console commands:

- Has a Lua interpreter (you can write Lua scripts)
Through Lua, you can have custom functions called
when a key is pressed in-game.
There is also a lot of functions you can call from Lua
that do the same thing as some console commands.
You can also modify FL's constants through Lua.
- View and edit Freelancer's memory
- Hook custom code
- Cloaking when a key is pressed.

And there are many many more commands, not just these.


So what i'm asking you guys, is if this sounds like something that would help you design your mods or plugins,
and whether or not you would be interested and actually use it if I released it.

Later I will give you guys a command list if you want it but right now I don't have time.

2 registered users thanked already.

Users who thanked for this post:

Whiskas T-Mech (18.11.2011), archmage94 (17.09.2014)

SWAT_OP-R8R

Administrator

(12)

    Germany

Posts: 1,553

Activitypoints: 8,615

Date of registration: Oct 15th 2010

Reputation modifier: 14

Level: 45 [?]

Experience: 4,583,760

Next Level: 5,107,448

Thanks: 33

  • Send private message

member since 96 month member since 96 month member since 96 month member since 96 month member since 96 month member since 96 month member since 96 month member since 96 month

2

Monday, July 4th 2011, 1:56pm

I would not just be interested to use it.
I would be interested in supporting any development going into this direction.
Signature from »SWAT_OP-R8R«


(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(" )_(" ) signature to help him gain world domination.
Only dead fish swim with the stream.
Diplomacy is the art of saying, "Nice doggie" while picking up a rock.

adoxa

Corporal

(10)

Posts: 246

Activitypoints: 1,255

Date of registration: Jan 26th 2009

Reputation modifier: 5

Level: 36 [?]

Experience: 880,466

Next Level: 1,000,000

  • Send private message

member since 108 month member since 108 month member since 108 month member since 108 month member since 108 month member since 108 month member since 108 month member since 108 month member since 108 month

3

Monday, July 4th 2011, 3:37pm

Sounds better than my Console.

You should be careful editing constants. I had to fix Console, since it was possible to set cruise speed in SP, then switch to MP.

PolarBear

Gunnery Sergeant

(10)

    Israel

Posts: 574

Activitypoints: 3,435

Date of registration: May 3rd 2011

Reputation modifier: 1

Level: 39 [?]

Experience: 1,579,468

Next Level: 1,757,916

Thanks: 4

  • Send private message

member since 84 month member since 84 month member since 84 month member since 84 month member since 84 month member since 84 month member since 84 month

4

Monday, July 4th 2011, 8:28pm

It sounds good, but the name gives an asociation of a parody. You might consider changing it, or at least delete the "Lol".
Signature from »PolarBear«

  • "themilkman" started this thread
  • United States

Posts: 65

Activitypoints: 405

Date of registration: Sep 15th 2008

Reputation modifier: 5

Level: 29 [?]

Experience: 241,240

Next Level: 242,754

Thanks: 2

  • Send private message

member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month

5

Monday, July 4th 2011, 9:51pm

Ok, here is a list of console commands:

mark
unmark
malloc <bytes>
free <pointer>
view <pointer> <bytes>
edit <pointer> <bytes>
hex <string> <- converts a string to hex bytes
script <string> <- this executes a lua script
matrix <x> <y> <z> <- converts Euler angles to a rotation matrix
quaternion <x> <y> <z> <- converts Euler angles to a quaternion, for use in storyline missions.
setrotation <shipid> <x> <y> <z>
drainshield <shipid>
hash <string> <- Calculates a hashcode for a string
getposition <shipid>
sethealth <shipid> <value>
activate <shipid> <equipid> <value>
enumcargo
randompos <- this one moves the player to a random position in the system
setposition <shipid> <x> <y> <z>
setorientation <shipid> <column> <row> <value>
killship <shipid>
offset <module> <pointer> <- this one will take an offset from a file, and get
the position of it in memory.
For example, say you found a value in http://www.memes.no/88flak/downloads/beta/1.1_Offsets.txt
you wanted to change while the game was running. Just type in "offset common.dll 13E6D0"
and you can then use the "view" and "edit" commands to view and change that value.
invulnerable <shipid>
give_stackable <itemname> <amount>
give_nonstackable <itemname> <amount>
setcash <amount>
forceland <basename>
setrank <rank>
setrep <faction> <value>
setmusic <musicid>
callsign <faction> <form> <num1> <num2>
getsystem
getplayer
gettarget
settarget
maxammo
ship_info <pointer>
exit
about
commands

List of Lua functions you can use in your scripts:

conprint("string")
Prints string to the KP lol console.
Conprint shouldn't be called during a function registered with regkey().

player_getpos()
Returns the player's x, y, and z coords.

player_setpos(x, y, z)
Sets the player's coords.

player_gettarget()
Returns the player's target ID.

player_getspaceid()
Returns the player's ship ID.

player_setrot(x, y, z)
Sets the player's x, y, and z rotation values.

player_getrot()
Returns the player's x, y, and z rotation values.

player_setrep("faction", value)
Sets the player's current reputation with a faction

player_getrep("faction")
Returns the player's current reputation with a faction.

ship_getpos(id)
Returns a ship's x, y and z coords.

ship_setpos(id, x, y, z)
Sets a ship's x, y, and z coords.

ship_gettarget(id)
Returns another ship's target ID.

ship_setrot(id, x, y, z)
Sets the player's x, y, and z rotation values.

ship_getrot(id)
Returns the player's x, y, and z rotation values.

hash("string")
Creates a hashcode for string.

playsound(hash)
Plays the sound identified by hash.

playmusic(hash)
Plays the music identified by hash.

player_land("base")
Lands the player on the specified base.

player_setcash(amount)
Sets the player's current funds.

player_getcash()
Returns the player's current funds.

player_setrank(amount)
Sets the player's level.

player_getrank()
Returns the player's level.

player_additem(hash, amount)
Gives amount of hash to the player.

player_getship()
Returns the player's shiparch ID.

mark(id)
Marks a ship on the player's HUD.

unmark(id)
Unmarks a ship on the player's HUD.

regkey(key, "function")
Calls "function" when key is pressed.

The following constants are accessible from Lua as globals:

CHATTER_MAX_DIST
CHATTER_MAX_DIST_ATTEN
CHATTER_START_ATTEN
COLLISION_DAMAGE_FACTOR
COMM_PLAYER_FAR_DIST
COMM_PLAYER_FAR_DIST_ATTEN
FIRE_FAILED_DELAY
JETTISONED_CARGO_VELOCITY
LOOT_OWNER_SAFE_TIME
LOOT_UNSEEN_LIFE_TIME
LOOT_UNSEEN_RADIUS
MUSIC_CROSS_FADE_DELAY
MUZZLE_CONE_ANGLE
PLAYER_ATTACHED_EQUIP_HIT_PTS_SCALE
PLAYER_COLLISION_GROUP_HIT_PTS_SCALE
WALLA_MAX_DIST
WALLA_MAX_DIST_ATTEN
WALLA_START_ATTEN
CRUISE_ACCEL_TIME
CRUISE_ATTEN_MOD_RANGE
CRUISE_ACCEL_TIME
CRUISE_DRAG
CRUISE_STEADY_TIME
CRUISING_SPEED
THROTTLE_ATTEN_MOD_RANGE
THROTTLE_STEADY_TIME

I plan on expanding on commands and lua constants.

Also, if anyone would like to give suggestions for commands or Lua functions
go ahead and I will try to add them in.


EDIT: To PolarBear, the name "KP Lol" Is short for Kill Player and LOL.
When I first found flcoresdk and started messing with it, I just made
a DLL that, when you injected it into Freelancer using a program like
Cheat Engine, it killed you.

This post has been edited 1 times, last edit by "themilkman" (Jul 5th 2011, 1:03pm)


PolarBear

Gunnery Sergeant

(10)

    Israel

Posts: 574

Activitypoints: 3,435

Date of registration: May 3rd 2011

Reputation modifier: 1

Level: 39 [?]

Experience: 1,579,468

Next Level: 1,757,916

Thanks: 4

  • Send private message

member since 84 month member since 84 month member since 84 month member since 84 month member since 84 month member since 84 month member since 84 month

6

Monday, July 4th 2011, 10:02pm

EDIT: To PolarBear, the name "KP Lol" Is short for Kill Player and LOL.
When I first found flcoresdk and started messing with it, I just made
a DLL that, when you injected it into Freelancer using a program like
Cheat Engine, it killed you.
Good reason, yet it still sounds like a dumb name. (no offence)
Make it sound more professional, pitch up some name that will blast newbies off their seats.
Signature from »PolarBear«

  • "themilkman" started this thread
  • United States

Posts: 65

Activitypoints: 405

Date of registration: Sep 15th 2008

Reputation modifier: 5

Level: 29 [?]

Experience: 241,240

Next Level: 242,754

Thanks: 2

  • Send private message

member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month

7

Monday, July 4th 2011, 10:47pm

Hehe, thanks, but I think I will just stick with the current name. It took me long enough to come up with it when I started, who knows how long it will take me if I concentrate on finding a new name again. I would much rather spend time working on the actual code.

Anyway, I would like to see more people interested before I consider releasing anything. It's still a bit buggy, and I might as well iron out the kinks in the meantime.

SWAT_OP-R8R

Administrator

(12)

    Germany

Posts: 1,553

Activitypoints: 8,615

Date of registration: Oct 15th 2010

Reputation modifier: 14

Level: 45 [?]

Experience: 4,583,760

Next Level: 5,107,448

Thanks: 33

  • Send private message

member since 96 month member since 96 month member since 96 month member since 96 month member since 96 month member since 96 month member since 96 month member since 96 month

8

Tuesday, July 5th 2011, 11:04am

very powerful tool
Signature from »SWAT_OP-R8R«


(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(" )_(" ) signature to help him gain world domination.
Only dead fish swim with the stream.
Diplomacy is the art of saying, "Nice doggie" while picking up a rock.

    Austria

Posts: 715

Activitypoints: 3,835

Date of registration: Jan 15th 2009

Reputation modifier: 11

Level: 42 [?]

Experience: 2,566,460

Next Level: 3,025,107

Thanks: 3

  • Send private message

member since 108 month member since 108 month member since 108 month member since 108 month member since 108 month member since 108 month member since 108 month member since 108 month member since 108 month

9

Tuesday, July 5th 2011, 12:52pm

Sounds like a mighty tool =)

When I read "KP" I thought "Kernel Panic" lol

  • "themilkman" started this thread
  • United States

Posts: 65

Activitypoints: 405

Date of registration: Sep 15th 2008

Reputation modifier: 5

Level: 29 [?]

Experience: 241,240

Next Level: 242,754

Thanks: 2

  • Send private message

member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month member since 120 month

10

Wednesday, July 6th 2011, 2:17am

Here it is for you all to test out.

Extract the whole contents to Freelancer/EXE and then add kplol.dll to [Libraries] in dacom.ini
If you have any questions or find any bugs, PM me or send me an email at jaclewfarn@yahoo.com,
and let me know what you guys think.

This post has been edited 3 times, last edit by "themilkman" (Jul 6th 2011, 2:17am)


Social bookmarks

Legend:

Forum contains no new posts
Forum contains new posts
Forum is closed
Forum is an external link