Jump to content

rain_gloom

Members
  • Posts

    228
  • Joined

  • Last visited

Everything posted by rain_gloom

  1. I like working with SciTE, NPP and MTA:SE simultaniously, so sometimes I have a folder with .lua scripts but without a meta.xml and the server and MTA:SE are already running. Now, in this scenario, I do not have my scripts as a resource, so I quickly add a meta to test something in MTA, but I forget the parameters of some function, so I want to fix it in this topics editor, but I haven't got any feature to load it. so the functions I would suggest are: (some unrealted, some might already be there, but it's late and I'm too tired to check) refresh, just like the server command with the same name add file to meta auto meta (some string would determine the side, eg.: s_name.lua, c_name.lua, or user-defined wildcard patterns) and what's up with the meta editor? open resource: not a running one, but any other --i know you said that this editor is intended to be used alongside MTA, but frankly, I don't see why this shouldn't be implemented oh, one more thing: the fields below the function list and the resource browser are not doing anything. is it a bug or a missing feature?
  2. elkezdtem egy ilyet, de nem volt türelmem hozzá nem túl bonyolult igazából az alap, de van pár dolog amit meg szerettem volna oldani penlight-ban és ahhoz viszont már több ilyen funkció kell. asszem meg van az is hogy hogyan lehetne implementálni tiszta Lua könyvtárakat mindkét környezetben: (igazából baromi egyszerű, de idáig igazán nem gondolkodtam rajta ) kell csinálni minden lib-nek egy resource-ot metával és az útvonalat pedig mindig kiegészíteni SciTE-ban így lehet majd egy repo-val Bresenhaim, Penlight, meg mindenféle jóság (amúgy a Bresenhaim lesz a mátrixokban a Line of Sight check. csak mondom.) devlog: nem sok történt de: megvan egy része a tervezett API-nak és dxgui rajzok tervben megvannak (/me visszabukik a bioszkönyvbe)
  3. yuppé, van már egy shape (meg még egy "free"), megvan a működésük és elkészült az első verziója a collision check-nek erre iszunk...majd egyszer (ps.: új repo-ban kezdtem (inv2, eredeti név))
  4. még mindig nincs mic most egy darabig nem lesz túl sok időm a hétköznapokon suli miatt. a collision/overlap-ről majd csinálok egy kód vázlatot, az kicsit eccerűbb mint leírni (a string.rep-es gondolom azért volt gyorsabb mert nem Lua-ban van kódolva, tehát nem használja többek közt a konkatenációs metamethod-ot. persze csak tippelek...) dll modulok készítéséről tud valaki valami forrást? mármint MTA-hoz, de amúgy is.
  5. Ez aranyos volt. Tehát pont ugyanazt csinálja, mint a string.rep, csak itt a ismételendő stringet két paraméterként kapott stringből állítja össze: string.rep ( s1..s2, iter ). Az ultimate esszé jól hangzik, várom. nyet, KÖZÉ ékeli de utólag belegondolva, lehet h az se lett volna rossz h.: string.rep(str..sep,x):sub(1,#str*x*#sep) bár szerintem az utóbbi talán lassabb, már nem tom pontosan miért úgy csináltam, de mindenesetre működik közben megkértek, hogy segítsek egy RP szeróban, oda is többek közt az Inventory kéne, tehát a prioritás továbbra sem változik Inventory megint újrakezdve, mert ami eddig volt kevéske kód, az nem elég jó a collision/overlap check-ekhez az Action osztály párhuzamosan készül, mivel az item-ek nagy része valamilyen ilyet használna és ez egyszerűsíthetné az item-ek script-elését. Kérdés, hogy kell-e ilyen egyáltalán? hangouts: ok, felőlem lehet skype is, ha a G+ nem jön be. TS viszont már nem igazán, mert a képernyőmegosztás kellhet. (és ha nem tévedek abban olyan nincs) adrenalinesys néven vagyok fenn Skype-on (ne lepődjetek meg majd a profil néven )
  6. I opened a post, tried to reply, the site asked for me to log in, I logged in (so no error message about name or pass being wrong) and I was redirected to the main page. Then I calmly raged out.
  7. 90% ban SciTE-ban megy eddig minden, az open.lua tök használhatatlan eddig, azt csak azért írtam h lássam köbö mit akarok. A string.rep: "Returns a string that is the concatenation of n copies of the string s. " A repmix pedig közéékel egy plusz karaktert. na jó, jobb lenne egy ilyen kérdezz felelek stílusban elmagyaráznom, mert így nem tudom h mennyire lesz érthető, de most nekiállok az ultimate esszének amiben megpróbálok minél több tervet elmagyarázni, aztán jöhet a feedback ...
  8. so far this is the most awesome thing I saw today and I saw a flying unicorn in a hummer, so this must be pretty well spiced with awesome
  9. az utóbbi, természetesen ezért utálom az ilyen online megbeszéléseket, alig lehet megszervezni ... na mindegy, kitalálok másik időt, de addig a kódot nyugdtan lehet írni, lehet jvaslatokat tenni, etc igazából a lényegi részhez nem kell semmi megbeszélés
  10. Nna, hangouts, most végleges és kőbe vésett! Teháááááát....holnap délelőtt 9-re legyen minden résztvevő bejelentkezve Google+-ba/Hangouts-ba/egyéb olyan google-ös cuccba ahol kap hangouts értesítést! Sajna csak írni tudok egy darabig, no mic
  11. from the wiki bool setAccountData ( account theAccount, [b]string key[/b], string value ) you were using a variable that was never created (declared), that's exactly what the error says: --a variable foo --a string "foo" --so: setAccountData(getRandomPlayer(),"mykey",someData) the key is clearly a string while standard Lua tables support any type of key, MTA's setElementData and setAccountData and the respective get functions only support strings. I would suggest you play around with Lua a bit outside MTA to discover what you can and can't do. With some modules you can even use MTA functions, like the XML functions or toJSON/fromJSON. And some typechecks and errors in the code could help you discover what is going wrong.
  12. that works as well, but I need the screen space badly. Resedit, for example, needs a s#tload of it and even that is not enough for the function window. I wish it didn't use dxgui. And when I want to play instead of dev, I have to set the settings back and restart the game. If only there was a way to set them without running MTA. I only found the windowed mode in the settings file but even that is cumbersome.
  13. I know it may sound futile, but for development it's much better if you can instantly alt+tab between SciTE/wiki/NPP/MTA. The author of a similar modification for FO3 also notes that it increases stability, which I believe might also be true in this case. Anyway, it's not that hard to align the window, but an automatic version doesn't sound more complex than some basic calculations and setting the window poisition. edit: the mod I was talking aboot
  14. At first it was missing some dll but now that I installed the appropriate Visual I could run it. The problem still persists and the pastebin link I got was invalid: pastebin.com/error[No code2 specified] The pop-up still...wait for it...pops up. (ba dum ts)
  15. So far I had no problem besides the annoying pop-up when starting the client, but I do have MSE and up until now I haven't received any such message. Using latest release patch btw.
  16. What part should I change if I want only a few vehicles to achieve the following? only 1-20 vehicles, but those are always "streamed", so they are always moving and are never destroyed (at least not for coding purposes) get (random) positions on the road add vehicles explicitly engage/disengage into/from traffic it's kind of a huge resource, so I have no idea where should I begin... thx in adv
  17. akkor megbeszélés kedd délután 6-kor. skype-ot küldöm pm-ben hangouts lesz skype helyett SZERDA! bocs, sürgős családi cucc
  18. there is no ZombiesKilled variable, you need to use a string as a key in a regular table it would be like this asd = {"foo",function () end, 123} --calling with the index itself: print(asd[1])--it's a number here, but in MTA's data functions, you use strings and what you were doing and shoulda done myTable = {asd=1,foo=42,bar="asdf"} --we don't define myKey print(myTable[myKey])--nil --now we define it myKey = "foo" print(myTable[myKey])--42 good luck
  19. You can just do setAccountData(account, index, nil). And you can post suggestions here as it reads 'Suggestions'. Im saying to delete the index, no the value. Because i see all account data of my account and have so much indexs(data). didn't quite test it, but in Lua, whenever you assign nil to an index (global variables are simple fields of the global table _G) it gets "deleted" and later becomes garbage collected, it should be the same with account and element data in MTA
  20. benne van az, csak nem default modul az alap lua4windozval gyütt, de eddig nem használtam az origin itt nem a geometriai cuccok miatt fontos, hanem az lenne a shape-nem az egyetlen vonatkozó field-je....DE jobban belegondolva, az origin nem jó megoldás, abból az okból, h ha a shape-pel nagyobb adatokat mozgatunk aaz tök hülyeség, tehát a invmatrix (most így ívják, na) tartalmazza vegyítve a shape-eket (vagy vonatkozást a stack-ekre/stack-eket) és egy másik subtable-ben vannak az item-ek a shape típusok meg a collision check miatt fontosak, tehát pl ha tudjuk hogy egy forma nem tartalmaz lyukakat, nem kell az egészet átvizsgálni, ha tudjuk hogy egy téglalap, akkor azt is tudjuk, hogy milyen vonalon haladjunk. elméletben növekedhet ettől a méretük, de így sokkal gyorsabb keresésekre lehet számítani, ami egy játéknál igencsak fontos. közben töltöm is az első online git commit-eket és tanúsítom h a higany a nyomába sem ér (a bináris cuccokat meg egyelőre hanyagolom) letisztult és sokat segít hogy a github csinált saját klienst misc: kivonat az egyik fájlból: Ha kommentel valaki a kódba dokumentációs céllal, akkor előny ha luadoc-ot követve teszi, mert így könnyebb lesz a kiadott cuccot olvasni (és nem kell pluszban írnunk) valamelyik nap (értsd: vagy korán vagy este) mégiscsak kéne egy Skype/etc. találkozó hogy megvitassuk a terveket (és akár be is mutatkozzunk, ha nagyon muszáj ) mert így, hogy 24 óra mire megtudom hogy amit írok nem-e tök hülyeség az kicsit irritáló. --edit: ajánlom hogy aki eddig SciTE szűz volt azoknak most ajánom hogy inkább ott teszteljen mert amíg nincs GUI/Save-Load addig úgyse kell az MTA API-ja, persze ha valaki bírja a Resedit-et, hajrá, az én gépem azt súgja a fülembe hogy nem
  21. it would be really useful if we knew how big the current download size is + the current map size (you gotta keep them separated ) furthermore, the DayZ mod had some attempts at using the server name as an info bar (not a good idea when having more then 3 add-ons) and I think they have a point: if the info page was like a nano-html thing, it could for example list stuff like the time until the next map the website or basically anything The whole thing's knowledge shouldn't be more than of a simple web-page, all that would be needed are tabs, lists so basically nothing that a cegui window can't handle.
×
×
  • Create New...