Recent Posts

Pages: 1 2 3 [4] 5 6 ... 10
31
General Discussion / Re: .
« Last post by Slowhand on February 04, 2025, 09:57:39 AM »
If you had a question that you found answer for, then please do not remove topics like this, instead leave the original question and post your answer/solution.
32
Share Your Work / Discord Status Server
« Last post by kompreSor on February 04, 2025, 09:53:01 AM »
Hello everyone, 

Since the FOnline Status from fodev has been down for a while, I decided to create an alternative. I've set up a Discord server where bots display the current number of players on various FOnline servers and log historical player counts for reference. 

If any servers are missing, please send me a private message—preferably on Discord. Your message should include: 
- Server name 
- IP address 
- Port 
- Avatar image for the bot 
- Server website link 
- Server Discord link 

https://discord.gg/7hCvxz2GsH
33
General Discussion / Re: [ How to ] SDK - Fixboy - Craft time
« Last post by Vaultpunk on January 30, 2025, 09:44:44 PM »
nice
34
General Discussion / .
« Last post by Vaultpunk on January 27, 2025, 01:18:20 PM »
remove topic because bad question
35
General Discussion / Re: SDK - Fixboy - Craft time
« Last post by Feltzer on January 19, 2025, 12:00:25 AM »
ty based kilgore


You probably need a small workaround for that in main.fos

for example, to remove the cooldown completely, put this inside void items_crafted:

Code: [Select]
    uint[] param(1);
    param[0] = crafter.Id;
    CreateTimeEvent(__FullSecond+REAL_SECOND(0), "_CraftingTimeOutPatch", param, false);

and this outside of void items_crafted:

Code: [Select]
uint _CraftingTimeOutPatch(uint[]@ Id)
{
        Critter@ crafter = GetCritter(Id[0]);
        crafter.TimeoutBase[TO_SK_REPAIR] = __FullSecond+REAL_SECOND(0);
        crafter.TimeoutBase[TO_SK_SCIENCE] = __FullSecond+REAL_SECOND(0);
        return 0;
}

Took it from Xenom long ago.
To set craft timeout you'd need to identify the type of item crafted and set appropriate cd.

hope it helps, cheers
36
Questions and Answers / How do we add effects to items?
« Last post by cthulchu on January 03, 2025, 11:22:38 PM »
Hi there!

I don't think we have a guide on how to add special effects to items. I use the FOClassic engine.

My particular case is something I saw on fo3: I want bags and backpacks to add a percentage to player's max carry weight when equipped in hands.

I looked at how other things are implemented like the mirrored shades, but I'm not sure about all the steps I need to take to properly add some logic to an item. It would be great if someone could share the steps. Thanks!
37
Share Your Work / Re: How Do I Do With a simple textEditor.
« Last post by remake on October 26, 2024, 12:37:13 PM »
SublimeText is free to use in lifetime but it is a shareware... it pop up shitty window to buy license every use of ST's features. You can crack it easily if it's too disturbing...
Even easier - you can buy personal license. One license for all your workstations and all OS. 99 USD it's not so expensive for that.
38
Share Your Work / How Do I Do With a simple textEditor.
« Last post by adumbperson on October 19, 2024, 04:10:10 PM »
Hello Everybody.

I saw people speaking bad about the tools... alike they are unreliable...  :-X

You should be very careful to what you say in programming. It says a lot about your background.

hacker's manifesto "I don't care who/how you are, I care to what you say."

First of all, learn C programming and Then C++ then you'll be very comfortable to use the SDK.

I personnaly use Sublime Text 3 to do all my coding. I never been comfortable using Integrated Development Editor...

SublimeText is free to use in lifetime but it is a shareware... it pop up shitty window to buy license every use of ST's features. You can crack it easily if it's too disturbing...

Here are my building tools that I integrated myself to Sublime Text's building(popen) system.

requirement: You need append full path to ascompiler to your system PATH environment to be able to use it.

like so.
Code: [Select]
;C:\Users\UserName\Desktop\r513.sdk\Tools\ASCompiler
definition: This trigger ascompiler(using defines from server/mapper/client) on the actual file you working on. It permits to track development error(s).

filename: C:\Users\UserName\AppData\Roaming\Sublime Text 3\Packages\User\AsServer.sublime-build
Code: [Select]
{
        "shell_cmd": "ASCompiler.exe $file"
}

filename: C:\Users\UserName\AppData\Roaming\Sublime Text 3\Packages\User\AsMapper.sublime-build
Code: [Select]
{
"shell_cmd": "ASCompiler.exe $file -mapper"
}

filename: C:\Users\UserName\AppData\Roaming\Sublime Text 3\Packages\User\AsClient.sublime-build
Code: [Select]
{
"shell_cmd": "ASCompiler.exe $file -client"
}

You trigger them by selecting the one you want into build system option from SublimeText3 and using ctrl+b

it returns something like this in a pane bottom the editor:
Code: [Select]
Compiling C:\Users\UserName\Desktop\r513.sdk\Server\scripts\guard.fos ...
Success.
Time: 453.552 ms.
[Finished in 0.6s]

To exclude compiled files into the sublime text's file browser.
filename: C:\Users\UserName\AppData\Roaming\Sublime Text 3\Packages\User\Preferences.sublime-settings
Code: [Select]
{     
        "file_exclude_patterns":
[
"*.fosb",
"*.fosp"
]
}

To have syntax color with *.fos scripts.
filename:C:\Users\UserName\AppData\Roaming\Sublime Text 3\Packages\User\C++.sublime-settings
Code: [Select]
{
"extensions":
[
"cpp",
"cc",
"cxx",
"c++",
"h",
"hpp",
"hxx",
"h++",
"inl",
"ipp",
"fos"
]
}

Happy hacking.
39
Share Your Work / Re: FOnline status checker for ESP8266
« Last post by adumbperson on October 17, 2024, 03:20:23 PM »
Very nice. I got ideas for next steps...

- Rolling frame for all servers and bitmap icons

I would try making it myself but I just have an arduino. Maybe I can find some virtual machine to do it virtually, dunno need look for it. It certainly exists.
40
Share Your Work / Re: How to build CVet's FOnline using Windows 64bit
« Last post by adumbperson on October 17, 2024, 11:55:03 AM »
Hello SC, I'm late sorry. No I didn't. It's all written in the sarcasms...

I'm using an illegal copy from windows.

I been able to find VS10 disk iso I found on the web with some genuine KEY...

I'm working with an older revision of the SDK... you can check on the second page from "Share your work".
Pages: 1 2 3 [4] 5 6 ... 10