Comments (8)
Alright, I've written a smaller, more concise and fool proof answer in the tracker since someone wasn't able to spot the issue.
from botc.
Yes, result of the call memset(1, 1, 32768)
in HUMANBOT
would be globalArray1 elements all set to 0x01010101
. And I'm not sure if memset command is actually useful for a modder.
But probably there is nothing to do to fix that on botc side. At least other than making the compiler stable enough to be used for building Zandronum wad, and thus allowing to use bot sources instead of compiled bytecode.
from botc.
Is a simple for loop sufficient in the VM? The str type will have the same size as an int, right?
from botc.
I'm not sure it's possible to put a string value into a global array in bot scripts at all. I can't find any DH_ code that pops a string stack value and puts it into a variable or an array.
from botc.
In any case, I have submitted a PR.
https://bitbucket.org/Torr_Samaho/zandronum-stable/pull-requests/89/bots-dh_arrayset-implementation-is-wrong/diff
from botc.
Thank you. May be it'll even fix some weird behavior of the bots.
from botc.
Are you referring to this?
https://zandronum.com/tracker/view.php?id=3774
from botc.
Commit corrected and accepted.
https://bitbucket.org/Torr_Samaho/zandronum-stable/commits/a04a4f94737e5ad3aad6573227e146b76f037d95
from botc.
Related Issues (13)
- Zandronum reports stack size exceeded when Roam() is used HOT 5
- memset() is arrayset() HOT 3
- Zandronum reports stack size exceeded when Roam() is used (upgrade branch) HOT 3
- Compiled lumps differ in size from debotc output HOT 2
- BotC project license HOT 6
- Silent crash on encountering undefined variable HOT 5
- CI for Mac is broken HOT 5
- Export AZP CI definition to this repository
- How do I use this? HOT 1
- bool functions don't work? HOT 7
- botc_defs.bts missing in release archives, and missing memset function
- Fix build on Linux HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botc.