Jump to content

Adolfram

Members
  • Posts

    57
  • Joined

  • Last visited

3 Followers

Details

  • Gang
    Ragnarok
  • Location
    Groove Street
  • Occupation
    OG
  • Interests
    Male

Recent Profile Visitors

2,072 profile views

Adolfram's Achievements

Snitch

Snitch (10/54)

25

Reputation

  1. Hey, thanks a lot! This should do.
  2. I don't really see how this would work over http but I'll look into modules. Thanks.
  3. I'm afraid it is not. I've set up a docker environment for my dev/prod servers and the only way I can distinguish dev and prod is the ports.
  4. Is there a way to get/set environment variables in MTA Lua? I've tried os.getenv but it errors for "unsecure function calling".
  5. Hello, I've been trying to install tunable car mods on my MTA server but it doesn't seem to load any texture when loading the tunable parts' dff files. I tried every ordering: Load TXD before tunable parts' DFF, Load tunable parts' DFF before TXD, Load TXD, DFF and then tunable parts' DFF Nothing seems to work. One thing caught my interest though. No matter how I order downloading, if I completely close MTA and relaunch the game, it seems to work flawlessly. And after restarting the script for several times it breaks again. Has anyone experienced this? engineImportTXD returns false btw.
  6. Thanks! We are trying to take things as fun as we can to avoid boredom (for ourselves and players). There is nothing really beyond "it's just a game" mindset and it has really been paying off. After all, we are also joining the server to have some fun like everyone else. Also UPDATE We changed the fishing a bit, you have to challenge the fish to take its life. And flesh.
  7. mtasa://51.254.235.204:22004 Introduction: Forseti is an old school Freeroam/RPG with a retro theme. We wanted to re-capture the nostalgia of GTA San Andreas. Well, what can you do in this server? Let's give you some examples. You can: Buy houses, change property name, lock/unlock them, set them for sale, and change their price & more. Buy vehicles, add unique upgrades, park them, change their price and set them for sale, etc. Trade your vehicles with other players, buy and sell them for amounts you set. This includes new vehicles we added ourselves, as well as new upgrades. You can create or join gangs and fight with others for very valuable areas on the map. You can capture or invade gang bases and make use of the amazing features they have. You can buy gang vehicles for your base, buy ammo from your base for a cheaper price, upgrade your base protection, add homing missiles that will protect you from attackers. We also went ahead and re-balanced/replaced some weapons that were inferior to encourage more players get into these big fights. It's worth mentioning that these fights are completely optional and if you want to play more casually, you can completely avoid them if you are not interested. The gang bases are located in LV only. Cut the crap, how do I make money? We have a few options. You can press 'F3' to open GPS menu and go to mission locations. Driving a taxi: You can pick up customers and drop them off where they want to go. Simple and efficient. Fishing: You can buy a fishing rod for $50 from fishermen at coast areas and fish anywhere you want. Just press 'B' and wait for the fish to bite, then press 'B' again to reel them in. You will get a unique fish depending on server time and weather. Let's not spoil it further. Press 'I' to open your fish inventory. Lumberjack Work: You can buy an axe from weapon shops or lumberjacks on the map. Wood you cut will stay in your inventory. You can see how much wood you have by pressing 'I'. You can sell them back to lumberjacks for a good price. Drug Delivery: You can become a dealer at San Fierro and deliver the 'stuff' to junkies. Try not to be seen though. This mission has a built-in leveling system of it's own. More you do it, better rewards you will get. Zombie Purifier: Become a purifier at Area 51 and help the army clean up zombie infested areas. Be careful though. If you get bit you will get infected. It might not end pretty. Deathmatch: Do you have something to prove? Well then. You can join the current deathmatch by pressing 'F2'. You can pick up weapons from the area and fight each other. You get money every time you kill someone, and you get punished for dying." Recovering from a bad divorce? Your wife keeps threatening to take the kids? Went broke already? We got you! Forseti Bank will happly provide you with a loan* and take it back using force if you haven't paid for 4 weeks* in real time! *(1): Loans include interest rate 100% which is a totally humanly amount to take. You should be able to make this kind of money basically working for your all life. But don't worry. Our system has never shown to have failed. *(2): four weeks actually means 1 or 2 hours but don't worry. We will not demand any payment after your death. The map itself is filled with vehicles, why would I pay for one? You can buy vehicles from the car icons on the map ('F11'). Every vehicle shop is different, so don't forget to check other shops if you can't find the vehicle you want. --Player owned vehicles are faster than other vehicles and you can change their properties permanently. You also have full control over them. --You can enter Pay 'N' Spray to paint your vehicle, change headlights, and add upgrades. --Upgrades include: Bumpers, Wheels, Spoilers etc. & Adding a Neon to your vehicle and unlocking burnout. --You can spawn your vehicle, despawn it, lock it, start/stop engine and park it from our main menu. ('F1' or 'M') --You can also use the /car 1, car 2 etc. commands to spawn your vehicles right in front of you. --You can press 'L' to lock and unlock your vehicle from the inside. Other players can't lock your vehicle. --1-2-3-4-5-6-7-8 keys are used for some cool features when you are driving a vehicle. Open trunks, doors, change suspension etc. --If you park your vehicle, it will automatically respawn at the parked location and it will be locked. --You can set your vehicles for sale and other players can buy them. When you trade a vehicle, it'll keep the upgrades. --You can track the vehicle economy on our Discord server. Simply take a look at the #vehicles channel. --Every vehicle has a certain stock and it might run out, so buying vehicles with your spare money and selling them is a viable strategy. --Stocks are added every now and then depending on vehicle rarity, so don't worry, you will get a chance to buy them eventually. --Be careful not to leave your vehicles unlocked, other players can vandalize them at Pay 'N' Spray. ;)", I have 4 children and I have nowhere to live! Help me! You are in luck! We have a house system that's detailed but simple and fun to use. But how do you buy a house and what can you do with it? Houses not only provide you with a safe area, but they have other benefits as well. You can see the houses that are on sale on your map. You can walk to a house's pickup in front of their door and see all the information. When you buy a house, you will be granted full control over it. Such as: --If your house is a business, ALL money that are spent in there are yours. --Example: If you own LS Bistro you will gain all the money other players spend there. --You can set any house you own as your spawn point. If you die, you will respawn at your bed. --You will not take damage in your own house. --You can rename your property to whatever you want. --You can lock and unlock your house for other players. Don't want to be bothered? Lock it. --You can set your house on sale or take it off the sale for other players. Bought a house for 35k and you want to sell it for 35m? It's scummy, but go ahead. --You can change your house's sale value. Make it more expensive or cheaper. --You can instantly sell it back for a little less value. Took a loan and can't pay back? Maybe there's a way out. Did I say loans? That's a whole another thing, let's get back to our topic. You can see the houses you own on your main menu ('F1' or 'M') If you want to see where your house is located, clicking on it will start GPS.", I feel alone in this cold world! Someone take me in! Don't worry, you can join a gang or make your own for 50k. A gang leader can: --Invite players --Kick members --Change member ranks --Invade other gang bases --Change gang name --Change gang tag --Change gang color --Set aside some money for other members to spend on stuff --Upgrade gang gates, make them more resistant to explosions --Buy homing missiles that will attack incoming hostiles Capturing a gang base has a lot of good benefits. Such as spawning it as your spawn point, a steady money stream, buying weapons for cheaper, or using special gang vehicles. Note: You can ping a location on the map for your gang mates. (F11 + X + Right click) That's cool and all, but I got banned in every server I played on. What are the rules? We believe strict rules kill the fun. You are allowed to do anything you want and mess around as long as you aren't ruining it for others. That's all? No. We have a lot of small details and more big features that will make the server feel alive. GTA San Andreas interiors with their unique uses, walking food vendors and vehicles, automated trains that will take a break at stations, custom maps, some mechanical changes, fitting unique weather cycles for every state of it's own that will change on a rotation and much more. So go ahead! Do some fishing for random loot, cut the trees around the map, drive a taxi for NPCs, smuggle drugs or help the army clean up zombie infested areas. There's a bit too much to write about, so we will let you experience them on your own. No point in turning this into a book. Here are some random screenshots from the server we like:
  8. I have burnt the last 3 brain cells I have left and am probably doing something terribly wrong. I will come back to this tomorrow. Thanks for your help @IIYAMA.
  9. I mean I can try that but I doubt this will do any help because the converter starts after the request which happens to be the playSound function. Here is my node.js code to help better understanding: var http = require('http'), fileSystem = require('fs'), path = require('path'); const url = require('url'); var Downloader = require("./downloader"); var dl = new Downloader(); //Configure YoutubeMp3Downloader with your settings http.createServer(function (request, response) { const queryObject = url.parse(request.url, true).query; if (!queryObject['ytId']) { response.writeHead(404); response.end("File not found."); return; } var ytId = queryObject['ytId']; var filePath; if (fileSystem.existsSync(path.join("/opt/ytdl/mp3", `${ytId}.mp3`))) { console.log(`${ytId} already exists. not downloading`); filePath = path.join("/opt/ytdl/mp3", `${ytId}.mp3`); var stat = fileSystem.statSync(filePath); response.writeHead(200, { 'Content-Type': 'audio/mpeg', 'Content-Length': stat.size }); var readStream = fileSystem.createReadStream(filePath); // We replaced all the event handlers with a simple call to readStream.pipe() readStream.once('end', function () { console.log("readstream ended"); fileSystem.unlink(filePath, function () { console.log(filePath + "downloaded and deleted"); }); }); readStream.pipe(response, {end: true}); } else { console.log(`download for ${ytId} begins`); dl.getMP3({ videoId: ytId, name: `${ytId}.mp3` }, function (err, res) { if (err) { response.writeHead(400); response.end(err); } else { console.log("Song was downloaded: " + res.file); filePath = (res.file); var stat = fileSystem.statSync(filePath); response.writeHead(200, { 'Content-Type': 'audio/mpeg', 'Content-Length': stat.size }); var readStream = fileSystem.createReadStream(filePath); // We replaced all the event handlers with a simple call to readStream.pipe() readStream.once('end', function () { console.log("readstream ended"); fileSystem.unlink(filePath, function () { console.log(filePath + "downloaded and deleted"); }); }); readStream.pipe(response, {end: true}); } }); } }) .listen(2000); console.log("Yt downloder listening on :2000") Sorry for the noob code, I'm a .NET geek.
  10. Where should I put the delay? Node.js or MTA?. How can I put delay on playSound? I didn't understand your suggestion sadly
  11. I am sure I'm fully streaming. The response is ended after the download is complete. Do you want to see the node.js code?
  12. Hey man sorry for creating a topic before trying long enough. I have found a solution by using another npm package which serves as a streamer (https://www.npmjs.com/package/youtube-audio-stream for the reference). But yeah, I made sure I returned a response after the file was created and made sure of that. I needed to fire playSound twice for it to work. It is weird but I'm glad I didn't solve it in that way.
×
×
  • Create New...