Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
84 user(s) are online (33 user(s) are browsing Forum)

Members: 0
Guests: 84

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +5€

Current balance: 0€
(last updated 06/2020)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 32 users playing Freelancer on 44 servers.
July. 6, 2020

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



Creating Items from materials?

Joined:
2008/2/10 21:49
From Austin, TX
Group:
Registered Users
Posts: 49
Offline
My friend and I are, once again, hard at working designing a modification. An Original IP, in fact, and we have an idea that'd... well, be critical for the mod we want to do, so here's what I want to desperately be possible from FLHook.

Is there a way to set up a list of "recipes" in an FLHook file, then enter a command (maybe one that requires you to be docked on a base) that will build items from materials you've scavenged? Here's an example.

I'll set up a Recipe in the recipe file that is for an [Inferno I]. This [Inferno I] requires the following Materials:
-[Inferno I] Schematic
-Steel Alloyx2
-Plasma Core.

When docked, the player then types in the command /createall. FLHook will look through his inventory, see "Oh, hey! You have everything you need to make an [Inferno I]!", then deletes the Steel Alloys and Plasma Core, and replaces it with an [Inferno I] in his hold.

It'd be cool if it could be made so that the Schematics aren't consumed, but if we can't make it that way, that's fine, too. (Maybe it'd be possible if in the Recipe, you can set items to have a variable that says "used" and "not used"?)

Can we do this?

Posted on: 2009/4/10 14:29
Top
Re: Creating Items from materials?
Home away from home
Joined:
2008/6/13 22:44
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 543
Offline
Hm not 100% sure but it should be possibel to change the ship via hook also the leadout etc. should be possible.
And the Item detection is no problem aswell as removing them from a char, the only problem could be that editing the ship and cargo would need a kick from the server.

But i only know some basics, i believe Wodka, Motah and all the others hook cracks can tell u more.

Posted on: 2009/4/10 14:40
Open in new window
Top
Re: Creating Items from materials?
Home away from home
Joined:
2008/5/13 15:48
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 662
Offline
ATM M0tah's FlHook 1.63 supports docking restrictions with
--- certain amount of items
--- which can be taken away on docking.

So if you put your "Inferno I" on a base with docking restrictions like
[DockRestrictions]
base_selling_Inferno1=SteelAlloyx2, -1000 , You need 1000 pieces of Steel Alloy to dock here and buy the 'Inferno I'.
base_selling_Inferno1=PlasmaCore, -3 , You need 3 Plasma Cores to dock here and buy the 'Inferno I'.

you should be basically able to force the players 2 get those items,
before they can get that shipy.

That might not be exactly, what you are looking for, but it might get the job done.

Posted on: 2009/4/10 15:36
Open in new window
Top
Re: Creating Items from materials?
Just can't stay away
Joined:
2008/5/28 18:04
From Maine, USA
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 457
Offline
Editing cargo (and equipped items) can be done real-time, however I'm not as sure about changing ships. However, with what has currently been implemented into FLHook, I can't see why this wouldn't be possible.

Edit: Currently, the DockingRestrictions function only supports one restricting item per base (the PlasmaCore entry would be ignored). He could probably fix this though.

Posted on: 2009/4/10 15:37
88 Flak for Freelancer
1.27 Betas | Wiki | Forums
Top
Re: Creating Items from materials?

Joined:
2008/2/10 21:49
From Austin, TX
Group:
Registered Users
Posts: 49
Offline
I apologize, I seem to fail at explaining.

What I want to be able to do is have players fly around and find scrap materials, then create weapons/equipment out of those items. It won't be changing a players ship, just the cargo inside. *laughs* Sorry, is THAT possible?

Posted on: 2009/4/10 15:41
Top
Re: Creating Items from materials?
Home away from home
Joined:
2008/5/13 15:48
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 662
Offline
;D ;D ;D ;D ;D ;D
......... YEA! - and please add a alternative "or" function:

base_selling_Inferno1=PlasmaCore, -3 <or> WarpCore, -5 , You need 3 Plasma Cores or 5 Warp Cores to dock here and buy the 'Inferno I'.



Posted on: 2009/4/10 15:44
Open in new window
Top
Re: Creating Items from materials?
Just can't stay away
Joined:
2008/5/28 18:04
From Maine, USA
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 457
Offline
Quote:
What I want to be able to do is have players fly around and find scrap materials, then create weapons/equipment out of those items. It won't be changing a players ship, just the cargo inside.

Yeah, and that's definitely possible via FLHook. As I've stated, cargo and equipment can be changed in real-time (thus allowing instant item creation from other items); I just wasn't as sure about ships (for if you wanted several items to come together to give a player a special ship).

Posted on: 2009/4/10 15:45
88 Flak for Freelancer
1.27 Betas | Wiki | Forums
Top
Re: Creating Items from materials?

Joined:
2008/2/10 21:49
From Austin, TX
Group:
Registered Users
Posts: 49
Offline
Ships would be an interesting idea, but that might be getting a LITTLE ambitious (though you've now gotten me thinking. Curse you Fox. Cures you.) for our initial plans. Cool. It's good to know it's possible. Now, to see if I've got to start coding it myself, or if we have an over-ambitious coder who wants to get into it. *laughs*

Posted on: 2009/4/10 15:51
Top
Re: Creating Items from materials?
Starport Admin
Joined:
2008/2/10 15:03
Group:
Registered Users
Starport Admin
$$$ Supporters $$$
Posts: 1018
Offline
lol, this concept has been a around for a while now FYI (can it still be called a concept? lol)

i divert your attention too Freelancer Cargo Exchanger

Posted on: 2009/4/10 20:15
Top
Re: Creating Items from materials?

Joined:
2008/2/10 21:49
From Austin, TX
Group:
Registered Users
Posts: 49
Offline
zOMG, what is this? I'm going to have to toy around with this little thing here, and see if it'll do what I want it to! Awesome, thanks Cheese!

Posted on: 2009/4/10 22:17
Top
Re: Creating Items from materials?
Starport Admin
Joined:
2008/2/10 15:03
Group:
Registered Users
Starport Admin
$$$ Supporters $$$
Posts: 1018
Offline
Quote:

zOMG, what is this? I'm going to have to toy around with this little thing here, and see if it'll do what I want it to! Awesome, thanks Cheese!


dont mention it lol

Posted on: 2009/4/10 22:26
Top
Re: Creating Items from materials?
Home away from home
Joined:
2008/2/10 22:00
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 1281
Offline
Hehe, its a pretty basic program. It only works once they log off as well (no hooking used). It also supports single rep changes as well & ship exchanging if IIRC. I had intended on extending it but unfortunately a HD crash wiped out the code....

Posted on: 2009/4/10 22:55
Galaxy Empire
Youtube Videos
Facebook
Top
Re: Creating Items from materials?
Starport Admin
Joined:
2008/2/10 15:03
Group:
Registered Users
Starport Admin
$$$ Supporters $$$
Posts: 1018
Offline
Quote:

Hehe, its a pretty basic program. It only works once they log off as well (no hooking used). It also supports single rep changes as well & ship exchanging if IIRC. I had intended on extending it but unfortunately a HD crash wiped out the code....


i know man sucks majorly, i personally hope you try and rebuild it .... but dreams were made to not come true =P

*goes off to make own* ^^

Posted on: 2009/4/10 23:02
Top
Re: Creating Items from materials?
Just can't stay away
Joined:
2008/2/25 6:48
Group:
Registered Users
Trusted Speciality Developers
Senior Members
Posts: 252
Offline
Quote:

Editing cargo (and equipped items) can be done real-time, however I'm not as sure about changing ships.
Changing ships is possible in real time as long as you are docked at a base.

Also, a basic system to do what you are describing would be fairly easy to implement with FLHook assuming you have someone that knows what they're doing.

Posted on: 2009/4/11 10:35
Top