Jump to content

rain_gloom

Members
  • Posts

    228
  • Joined

  • Last visited

Everything posted by rain_gloom

  1. Running a `wget -m` download right now, not sure how it will turn out. If it works I'll upload it. Couldn't the server do this automatically? The Löve 2d wiki has auto generated offline copies and it's not a huge site. Update: the download is not done yet, but no links on the main page are working, so it probably failed to properly copy the site's structure. The files are there but not accessible through links.
  2. 50/50 Cars have their own Coronas, but they are using the Texture i am using too, so you would have to replace the Vehicle Corona to get the old Corona Back. You can't exclude the effect from vehicles in any way. I tried that with my night_mod for dynamic_lighting. Well. But still i think you did a good job for DAYZ community. You can use something like the dynamic vehicle lights resource to re-add them.
  3. Arch x64 v225 Ah... that might be a problem, it's an rc version. http://nightly.mtasa.com/multitheftauto ... 1DA.tar.gz But does that explain the error? The 32 bit was from linux.mtasa.com, that one runs fine. (ok, it does give an error about missing configs, but I expected that and it was only downloaded to see if it starts at all) edit:ok, the release version works fine, but I'm still curious about the GitHub build as it doesn't seem like one of the usual errors due to some missing header or shared library.
  4. Problem 1: The x64 version is giving this error: ]$ ./mta-server64 libtinfo.so.5: cannot open shared object file: No such file or directory ERROR: Could not load ./x64/core.so * Check installed data files. Press enter to continue... But the x64 folder is right next to it with all the files. What's wrong then? I tried ldd on the executable, but I'm not exactly how I should interpret the output. linux-vdso.so.1 (0x00007ffc0ab7e000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f2ebc974000) libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f2ebc770000) libz.so.1 => /usr/lib/libz.so.1 (0x00007f2ebc55a000) librt.so.1 => /usr/lib/librt.so.1 (0x00007f2ebc352000) libm.so.6 => /usr/lib/libm.so.6 (0x00007f2ebc054000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f2ebbe3e000) libc.so.6 => /usr/lib/libc.so.6 (0x00007f2ebba9a000) /lib64/ld-linux-x86-64.so.2 (0x00007f2ebccf6000) libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f2ebb87d000) Problem 2: I thought maybe I could build it from source, but there is this error: ./logic/CObjectManager.cpp:51:1: error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing] make[5]: *** [deathmatch_la-CObjectManager.lo] Error 1 make[4]: *** [all] Error 2 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 I've downloaded the code from GitHub and checked out the 1.5.0 release. There was an initial problem with the ncursesw headers not being in the correct place, but that is an Arch bug(/feature) and I managed to fix it by some symlinking. Note: I'm using the gcc-multilib package instead of the usual gcc, is that the problem? (the experimental Linux release of Unity 3D needs the multilib one)
  5. Oooh, nifty! Thanks a bunch, it does work with a delay!
  6. I'm not sure if this is intended behavior or just me messing things up. I have a resource that stops any resource being started, does a few modifications on it then starts it again, but the new resource does not actually start. All I see in the server log is: start: Resource "test" start was requested () here is the relevant code: local startSet = {} local function procd ( resource ) if startSet [ resource ] then startSet [ resource ] = nil else cancelEvent () processResource ( resource.name ) startSet [ resource ] = true startResource ( resource ) end end addEventHandler ( 'onResourcePreStart', root, procd ) If I manually start it after that message, it works as expected and the processing is not run.
  7. Yes, I realize that, but it seems it automatically interprets JSON. Try making a setting with a value like "[true]" or "[1]" or "[[1,2,3]]" and print the type of whatever `get ""` returns. If the value is enclosed in [], it will be automatically converted. edit: Maybe I should clarify the original question then.
  8. I'm thinking about streaming at Livecoding.tv and I was wondering if anyone else is doing it? The EIR project has/had something like this, but last time I checked there wasn't much activity, nor are there (m)any Twitch streams about MTA. Is MTA streaming a thing? I think it would definitely be fun to do and could bring in more players if the streamers put out quality content.
  9. I realize that there is a transition in the login system, so my first question (can we register new accounts?) is probably pointless. The second is about the documentation of the settings registry. I've seen in a few examples and the default resource pack that one can use what I assume is JSON. I don't know much about it, so I may be wrong, but it does seem like JSON syntax to me. I couldn't find anything about it in the docs. Why haven't anyone documented it? related scripting question
  10. edit: I'm curious about setting values of the form "[]" being automatically interpreted and also what the `accept` attribute do and what its syntax is? I've found out a few days ago that the settings system is capable of more than just storing plaintext and actually seems to support something like JSON. (I don't have much experience with JSON, but the syntax seems like JSON for me) This raised a few questions that the docs do not mention. How are values interpreted? What's the syntax of the "accept" attribute?
  11. Ah. Thanks. It probably confused me that there is an optional argument between two mandatory ones.
  12. I'm trying to build a wrapper around luac.mtasa.com to automate builds, but I'm getting quite a few errors. this is the current script: --[[template from luac.mtasa.com/api: local FROM="example.lua" local TO="compiled.lua" fetchRemote( "http://luac.mtasa.com/?compile=1&debug=0&obfuscate=0", function(data) fileSave(TO,data) end, fileLoad(FROM), true ) ]] function compileString ( source, callback, compile, debug, obfuscate, attempts ) fetchRemote ( ( 'http://luac.mtasa.com/?compile=%d&debug=%d&obfuscate=%d' ):format ( compile and 1 or 0, debug and 1 or 0, obfuscate and 1 or 0 ), function ( response, errcode ) if response:match ( '^ERROR' ) then error ( ( "compilation failed with errorcode=%d and response=%s" ):format ( errcode, response ) ) else outputDebugString "compiled" callback ( response ) end end, attempts, true, source ) outputDebugString ( "compiling: " .. source ) end The function is exported btw. The error I get is "ERROR could not read file", I've tried compiling a few random scripts in my browser, but only one or two of them worked. Previously I could not even connect to the site. I've ran the function with simple things like "a=2" and "return 0" and some basic loops, but all of them returned the same error? What am I doing wrong?
  13. Link for the impatient: GitHub repository If you are not using Git, just click the "Download ZIP" button on the right I'll upload it to the community site when all basic features are implemented Preface: What is this? If you have done any serious coding with compiled languages, you probably know what a build system is, this resource provides similar functionalities. Currently it has a working Lua preprocessor, which will be expanded later, a Meta.xml based settings system that provides the necessary information for building and a "daemon" script, which automatically processes resources before they start. What is currently missing is an interface to the online compiler. I have done one previously, so it will probably be included in the following days. There isn't much documentation yet, as the syntax was constantly changing, but it is mostly stable now, so expect a proper readme soon. The basic syntax: Everything is controlled sections in your resource's Meta.xml file. You can use the and tags, the first describes a file to build and the second changes the default behavior of the builder. Each obj tag can override its settings. It should also be noted that the processing is sequential, so obj before a setting won't be affected by that setting, only the ones after the setting will be affected by it. Currently there are settings for handling file names and turning the preprocessor on and off. To be implemented are a setting for passing arbitrary arguments to the preprocessor, one for controlling compilation and a few for caching. (note: caching is not a priority currently, but it should eventually be included) Warnings: sometimes you need to clear the clientside cache for changes to take place there is only basic protection for overwriting source files the resource needs some ACL rights, read the source before you allow it to run IMPORTANT if a tag refers to a file that will only be created by the build script, the resource will fail to load there is not much I can do about it as that's just simply how MTA loads and validates them the easiest solution is creating a placeholder file with the same name and either leaving it empty or putting an error in If you want to tinker with it, the code is on GitHub. (that's also where bug reports and requests should go) Contributions are absolutely welcome.
  14. If you are versed in the ways of 3D, you could just do a retopo, if not, there are methods for decreasing polycount. I'm a Blender user, so I can't speak for Max or Maya. In Blender, you could use the `decimate` modifier, but if you mess the topology up, the shading can become ugly.
  15. not directly related but: Could you guys look at this? I thought it would be nice to have an IDE that was built for Lua integrated to MTA and there are probably a lot of people who can do this better than me. Not that I don't want to do it, I will. At least I'll try. But professional help would be nice.
  16. I am planning to make an API completion for ZBStudio, but since others have done similar things in the past (for Notepad++ and SublimeText) I'd like to ask for some help/pointers. I think the completion will be easy to make, but a deeper level of integration would be nice. eg.: restarting/upgrading/refreshing resources, integrating ZBStudio's remote debugger (MTA:SE does stg like this through a special resource) A few things about ZBStudio: made specifically for Lua open source and free multi-platform debugger integrated supports many Lua engines (LÖVE,Cocos,JIT,5.1,5.2,5.3, just to name a few) API autocomplete scriptable in Lua ps.: I probably won't reply to this thread until Monday, as I won't be near a computer.
  17. Probably the bot is entering the marker. You should definitely check the element entering inside the function. Try logging everything you work with (the bots created and the element entering the marker) You should see what is entering this way.
  18. As far as I know, you can't access the file system outside resources, ergo you have no way of knowing where on the host machine a file/directory exists. I think MTA:EIR will change this, but I don't think using the EIR fork is an option. You could add some info in their meta.xml though. If you are good at scripting, you could write some code that does it for you. Basically it would do this: (Python-esque pseudocode) for folder in category: meta=folder.openXML("meta.xml")--iterate resource folders in the grouping folder meta.getnode("info").add("category","somecategory")--open the folder's meta.xml file and add some tag into its info node Now you can iterate all resources and filter for one with that tag in its info. Not pretty, but it should work.
  19. Try it with 1.7 Wine, that fixed it for me on Ubuntu.
  20. Solution: Installed Wine 1.7 (beta) Now MTA works pretty OK, but I'll have to test a few servers to confirm. So far I have only tried FFS and that kicks me out, seems to be an SD issue.
  21. Longs story short: both Visual C++ packages download and fail. Versions: Ubuntu 14.10, Wine 1.6.2 Arch: x64 Wine arch: x86/x64 (both give the same results) Emulated windows: XP/8 Vanilla SA runs perfectly and I copied every font from XP into Wine's font folder. As per the MTA wiki I should have a working installation and be free from MS. (because MTA is the only thing keeping me) I also tried VirtualBox, but SA lags as hell, even with 3D acceleration, so I haven't even tried MTA. PCI passthrough could be an option, but only Xen supports it without IOMMU. Did anyone ever succeed with running MTA on Linux? Would older MSVCR versions work?
  22. unpack=table.unpack, pliz I have not tested it, but it seems like most of the removed stuff can very easily be ran with a few changes, not to mention that a compatibility layer could easily be implemented. As for bytecode, well, tough luck for closed source. What most I heard most people complain about is the lack of setfenv, but MTA uses separate Lua states anyway, so I'm not sure anyone have ever used setfenv.
  23. Only one problem: who would give away free Ferrero Rochers?
  24. Thanks, already have done so We'll see what the dev team can/want to do.
  25. Awesome resource! Only one thing: would it be possible to attach emitters to moving objects?
×
×
  • Create New...