Coder Social home page Coder Social logo

openffa's People

Contributors

skullernet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

openffa's Issues

Implement Hook Vars from Tourney

// Hook
set hook_enable 0
set hook_color "0xd1d1d1d1"
set hook_speed 1650
set hook_pullspeed 975
set hook_initdamage 20
set hook_incdamage 1
set hook_maxdamage 30
set hook_holdtime 7.5
set hook_sky 0
set hook_wait 0.5

linux compilation issue

g_main.c: In function ‘G_Init’:
g_main.c:1176:50: error: expected expression before ‘)’ token
     gi.cvar("revision", va("%d", OPENFFA_REVISION), CVAR_SERVERINFO);
                                                  ^
g_main.c:1177:54: error: expected expression before ‘)’ token
     gi.cvar_set("revision", va("%d", OPENFFA_REVISION));
                                                      ^
Makefile:105: recipe for target 'g_main.o' failed
make: *** [g_main.o] Error 1

Implement Weapon Item Handling vars from Tourney

Here is the OSP Tourney Weapon-Item Handling section from a sample cfg from their TourneyCE.exe (Tourney Configuration Editor) Can openffa implement the allow_* vars which allowed specific items show up on the map. 0 Disabled the item from showing up the item on the map (for pickup), 1 enabled them. The additional non-allow vars would be nice as well.

// Weapon-Item Handling
set allow_shotgun 0
set allow_supershotgun 0
set allow_machinegun 0
set allow_chaingun 0
set allow_grenadelauncher 0
set allow_rocketlauncher 0
set allow_hyperblaster 0
set allow_railgun 0
set allow_bfg 0
set allow_ammo_cells 1
set allow_ammo_grenades 1
set allow_item_powerscreen 0
set allow_item_powershield 0
set allow_item_quad 0
set allow_item_invul 0
set allow_item_pack 0
set damage_railgun 100
set power_armor_screen 1.00
set power_armor_shield 2.00
set fast_respawn 1.00
set fast_maxpbound 20
set fast_minpbound 1

[FeatureRequest] How to prevent auto-restart of map after timelimit hit if there is no players?

Q2PRO-server with OpenFFA mod (without Warmup) automatically restarts map every time after timelimit.
So, there are a lot similar log messages like this:

...
A [2020-10-14 02:25:55] 0 entities inhibited
A [2020-10-14 02:25:55] 0 teams with 0 entities
A [2020-10-14 02:25:55] 15 minutes remaining in match.
A [2020-10-14 02:30:55] 10 minutes remaining in match.
A [2020-10-14 02:35:55] 5 minutes remaining in match.
A [2020-10-14 02:39:55] 1 minute remaining in match.
A [2020-10-14 02:40:45] 10 seconds remaining in match.
A [2020-10-14 02:40:55] Timelimit hit.
...
A [2020-10-14 02:40:55] Map queue: 11 entries
A [2020-10-14 02:40:55] Couldn't find next map!
A [2020-10-14 02:41:05] 0 entities inhibited
A [2020-10-14 02:41:05] 0 teams with 0 entities
A [2020-10-14 02:41:05] 15 minutes remaining in match.
A [2020-10-14 02:46:04] 10 minutes remaining in match.
A [2020-10-14 02:51:04] 5 minutes remaining in match.
A [2020-10-14 02:55:04] 1 minute remaining in match.
A [2020-10-14 02:55:54] 10 seconds remaining in match.
A [2020-10-14 02:56:04] Timelimit hit.
...

I do not like such useless log spam. Is there any way to prevent restart map if there are no players at server?

Like server run 1st map once after start and if there are no players - stuck at intermission phase? And after player connection intermission ends as usual and map is restarted as usual.

Fails to build on FreeBSD 13.1

Running gmake on openffa repo yields:

g_bans.c:90:19: error: use of undeclared identifier 'AF_INET'
    if (inet_pton(AF_INET, s, addr) == 1) {
                  ^
g_bans.c:91:18: error: use of undeclared identifier 'AF_INET'
        family = AF_INET;
                 ^
g_bans.c:92:26: error: use of undeclared identifier 'AF_INET6'
    } else if (inet_pton(AF_INET6, s, addr) == 1) {
                         ^
g_bans.c:93:18: error: use of undeclared identifier 'AF_INET6'
        family = AF_INET6;
                 ^
g_bans.c:99:16: error: use of undeclared identifier 'AF_INET6'
        bits = ADDR_BITS(family);
               ^
g_bans.c:56:42: note: expanded from macro 'ADDR_BITS'
#define ADDR_BITS(family)   ((family) == AF_INET6 ? 128 : 32)
                                         ^
g_bans.c:101:32: error: use of undeclared identifier 'AF_INET6'
        if (bits < 0 || bits > ADDR_BITS(family))
                               ^
g_bans.c:56:42: note: expanded from macro 'ADDR_BITS'
#define ADDR_BITS(family)   ((family) == AF_INET6 ? 128 : 32)
                                         ^
g_bans.c:128:29: error: use of undeclared identifier 'AF_INET6'
    memcpy(&ip->addr, addr, ADDR_SIZE(family));
                            ^
g_bans.c:57:42: note: expanded from macro 'ADDR_SIZE'
#define ADDR_SIZE(family)   ((family) == AF_INET6 ?  16 :  4)
                                         ^
g_bans.c:129:29: error: use of undeclared identifier 'AF_INET6'
    memcpy(&ip->mask, mask, ADDR_SIZE(family));
                            ^
g_bans.c:57:42: note: expanded from macro 'ADDR_SIZE'
#define ADDR_SIZE(family)   ((family) == AF_INET6 ?  16 :  4)
                                         ^
g_bans.c:155:23: error: use of undeclared identifier 'AF_INET6'
        if (inet_pton(AF_INET6, s, addr) == 1)
                      ^
g_bans.c:156:20: error: use of undeclared identifier 'AF_INET6'
            return AF_INET6;
                   ^
g_bans.c:161:23: error: use of undeclared identifier 'AF_INET'
        if (inet_pton(AF_INET, s, addr) == 1)
                      ^
g_bans.c:162:20: error: use of undeclared identifier 'AF_INET'
            return AF_INET;
                   ^
g_bans.c:200:27: error: use of undeclared identifier 'AF_INET6'
        if (ip->family == AF_INET6) {
                          ^
g_bans.c:345:32: error: use of undeclared identifier 'AF_INET6'
    make_mask(&mask, family == AF_INET6 ? 64 : 32);
                               ^
g_bans.c:353:21: error: use of undeclared identifier 'AF_INET6'
    for (i = 0; i < ADDR_BITS(family) && mask->u8[i >> 3] & (1 << (7 - (i & 7))); i++)
                    ^
g_bans.c:56:42: note: expanded from macro 'ADDR_BITS'
#define ADDR_BITS(family)   ((family) == AF_INET6 ? 128 : 32)
                                         ^
g_bans.c:387:38: error: use of undeclared identifier 'AF_INET6'
            memcmp(&ip->addr, &addr, ADDR_SIZE(family)) ||
                                     ^
g_bans.c:57:42: note: expanded from macro 'ADDR_SIZE'
#define ADDR_SIZE(family)   ((family) == AF_INET6 ?  16 :  4)
                                         ^
g_bans.c:388:38: error: use of undeclared identifier 'AF_INET6'
            memcmp(&ip->mask, &mask, ADDR_SIZE(family))) {
                                     ^
g_bans.c:57:42: note: expanded from macro 'ADDR_SIZE'
#define ADDR_SIZE(family)   ((family) == AF_INET6 ?  16 :  4)
                                         ^
17 errors generated.
gmake: *** [Makefile:104: g_bans.o] Error 1

I believe these should be easy to fix. opentdm repo builds fine.

Update: Little bit of digging shows that some missing includes are needed to g_bans.c on FreeBSD:

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

as per man inet_pton

Could not cross-compile from Ubuntu 22 host (WSL2) for Windows

I am noob in compilation and absolute zero at cross-compilation.
Lost 2 hours for useless and stupid monkey-copy-pasting.

Installed sudo apt install mingw-w64.

Changes in Makefile:

Tried to set:

WINDRES ?= "x86_64-w64-mingw32-windres"
STRIP ?= "x86_64-w64-mingw32-strip"

Tried to remove (because of errors):

LDFLAGS += -mconsole
LDFLAGS += -Wl,--nxcompat,--dynamicbase

Added search path -L "/usr/x86_64-w64-mingw32/lib/" here:

LIBS += -lws2_32 -L "/usr/x86_64-w64-mingw32/lib/"

Last output:

[CLEAN]
[CC] g_bans.o
[CC] g_chase.o
[CC] g_cmds.o
[CC] g_combat.o
[CC] g_func.o
[CC] g_items.o
[CC] g_main.o
[CC] g_misc.o
[CC] g_phys.o
[CC] g_spawn.o
[CC] g_svcmds.o
[CC] g_target.o
[CC] g_trigger.o
[CC] g_utils.o
[CC] g_vote.o
[CC] g_weapon.o
[CC] p_client.o
[CC] p_hud.o
[CC] p_menu.o
[CC] p_view.o
[CC] p_weapon.o
[CC] q_shared.o
[RC] openffa.o
[LD] gamex86_64.dll
/usr/bin/ld: p_client.o: warning: relocation against `g_start_health' in read-only section `.text'
/usr/bin/ld: g_bans.o: relocation R_X86_64_PC32 against symbol `gi' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:113: gamex86_64.dll] Error 1

Please add support for "Message of the Day" (motd)

Would it be possible for your to add support for a "message of the day file"? E.g. a "motd.txt" could be placed in the mod directory and the content of the file would be shown to new players joining the server for some seconds.

You could maybe borrow some of the code from lithium II? :-)

Building for FreeBSD

Hey Andrey, I am getting an error when building openffa and opentdm for FreeBSD. How do I fix it?
I am doing a gmake which I was able to successfully build q2pro with.

The error output is:

[CC] g_bans.o
cc: error: no such file or directory: '119'
Makefile:79: recipe for target 'g_bans.o' failed
gmake: *** [g_bans.o] Error 1

highscores

Hi,
What settings should I use in order to allow openffa mod to show highscores (board) after every map ends automatically?

Initial weapon

One of my biggest uses of OSP tourney was creating specific flavors of server modes by giving players an initial weapon, infinite ammo etc etc via weapon_initial and dmflags. weapon_initial seems like an OSP Tourney var, is this not supported in openffa. Can the same thing be done somehow? Here are some of the settings I would set

set weapon_initial 64
set weapon_have 0
set start_shells 0
set start_bullets 0
set start_cells 0
set start_grenades 0
set start_rockets 50
set start_slugs 0
set start_health 100
set start_armor 0
set start_armortype 0
set max_shells 50
set max_bullets 50
set max_cells 50
set max_grenades 50
set max_rockets 50
set max_slugs 50
set max_health 100
set pack_shells 50
set pack_bullets 50
set pack_cells 50
set pack_grenades 50
set pack_rockets 50
set pack_slugs 50
set pack_health 100

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.