vlang / doom Goto Github PK
View Code? Open in Web Editor NEWDOOM translated from C to V.
License: GNU General Public License v2.0
DOOM translated from C to V.
License: GNU General Public License v2.0
when I run 'v -lib translated p_enemy.v' to make a v lib,it returned " Building module p_enemy.v...
Cross compiling /home/machao//.vlang//vlib//p_enemy.v.o
V panic: "/home/machao//.vlang//vlib/builtin/array.vh" doesn't exist"
how can I resolve it?
Hi, I just tried to follow the build instructions; using V 0.1.21 8373264
I try to call v -lib translated p_enemy.v
, get
p_enemy.v:2:12: redefinition of `memcpy`
1| struct C.FILE{}
2| fn C.memcpy(voidptr, voidptr, int)
^
3| fn C.memmove(voidptr, voidptr, int)
4| fn C.memset(voidptr, voidptr, int)
I decided to comment that out, got same with next line.
I commented out all the C
declared functions, got
p_enemy.v:36:17: struct names must be capitalized: use `struct Ticcmd_t`
35|
36| struct ticcmd_t {
^
37| forwardmove byte
38| sidemove byte
Any help would be appreciated.
Also, I somehow can't rebuild older version of v
(or at least it still tells me the version is V 0.1.21 8373264
even if I go a commit back); so if you can point me to what version of v
this works with + how to get it - that would be nice.
DOOM translated from C to V. Builds in 0.7 seconds (x25 speed-up).
Are you able to build the entire project in 0.7 seconds? Or just one file?
It takes 28 seconds on my quad-core Intel i7 @2.8GHz.
The source code here only has one file :)
Did you forget to push them by any chance?
Indent etc...
Hi,
I tried running the commands to build and run from the README.
However, I failed at v -lib translated p_enemy.v
:
Unknown argument `-lib`
And if I just skip that step and try to run with ``src/chocolate-doom -width 640:
Chocolate Doom 3.0.0
Z_Init: Init zone memory allocation daemon.
zone memory: 0x7fd8daf4d010, 1000000 allocated for zone
Using /home/aikido/.local/share/chocolate-doom/ for configuration and saves
V_Init: allocate screens.
M_LoadDefaults: Load system defaults.
saving config in /home/aikido/.local/share/chocolate-doom/default.cfg
Game mode indeterminate. No IWAD file was found. Try
specifying one with the '-iwad' command line parameter.
I just installed the compiler from https://vlang.io/ today, so I probably have the latest. I'm using Ubuntu 21.10.
Any ideas?
I got an error from running make
while following the install steps:
[ 51%] Building C object opl/CMakeFiles/opl.dir/opl.c.o
/Users/dylanwallace/chocolate-doom/opl/opl.c:23:10: fatal error: 'SDL.h' file not found
#include "SDL.h"
^~~~~~~
1 error generated.
make[3]: *** [opl/CMakeFiles/opl.dir/opl.c.o] Error 1
make[2]: *** [opl/CMakeFiles/opl.dir/all] Error 2
make[1]: *** [src/CMakeFiles/chocolate-doom.dir/rule] Error 2
make: *** [chocolate-doom] Error 2
Anything helps!
A blog post about translating DOOM will be published. (c) 2020(?)
https://github.com/vlang/v/blob/master/CONDUCT.md
I personally feel that DOOM is not nice and respectful.
V panic: v translated: unknown command
Run "v help" for usage.
addr2line: 'v': No such file
v(+0x2e7e) [0x5586a2cbbe7e]
addr2line: 'v': No such file
v(+0x91a66) [0x5586a2d4aa66]
addr2line: 'v': No such file
v(+0x90f23) [0x5586a2d49f23]
addr2line: 'v': No such file
v(+0x93a2a) [0x5586a2d4ca2a]
| 0x7f637b8c4b97 | /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)
addr2line: 'v': No such file
v(+0x194a) [0x5586a2cba94a]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.