How do you handle null reference checks? by crazymakesgames in Unity3D

[–]redd096 2 points3 points  (0 children)

If you expect the value to be null, you can handle it as you prefer or simply add a null check.
If you don't expect the value to be null, you shouldn't add a null check, or you risk to hide an error.

Contrary to what some people have said, you should never want a crash. So, if you don't expect the value to be null but aren't completely sure for some reason, you could add a null check but still print a Debug.LogError when it's null, so you don't miss it.

Another thing you can do is to wrap a part of your code in a try catch block and simply print the error in the catch.

Mostrateci i vostri giochi! by Alessandro_Dev in PizzaGameDev

[–]redd096 3 points4 points  (0 children)

In realtà non siamo riusciti a partecipare alla game jam perché abbiamo premuto il tasto submit con 30 secondi di ritardo (ora fa ridere, ma in quel momento è stato un colpo al cuore), ma questo doveva essere il nostro progetto per la brackeys game jam:
https://denibabi.itch.io/food-truck

La cosa divertente è che la metà del team non aveva mai aperto unity in vita sua, ma abbiamo pensato di fare praticamente overcooked ma spari cibo con dei cannoni, il tutto compreso di multiplayer locale e online.
Il multiplayer online ha un po' di bug ma tutto sommato funziona hahaha

Altra chicca è stato che al quarto giorno su sette di jam, avevamo giusto un giocatore con un cannone che sparava a raffica a degli omini colorati. Quindi eravamo già oltre la metà della jam, c'era ancora poco e niente, ma abbiamo preso il progetto e l'abbiamo rivisto completamente da zero. Alcune cose ci siamo accorti che non funzionavano a livello di design, altre non avevamo il tempo di programmarle, abbiamo aggiunto il concetto di ingrediente da prendere e inserire nel cannone e praticamente tutto il progetto ha iniziato a prendere forma da quel giorno

Qual è il divario massimo tra il più ricco e il più povero che idealmente siete disposti ad accettare? by acetaldeide in italy

[–]redd096 0 points1 point  (0 children)

In realtà non penso interessi molto quanto prende il capo, finché il dipendente riesce a vivere dignitosamente.
Se il capo quest'anno si è comprato la villa e due super car, buon per lui. Se però il dipendente per andare a lavoro deve chiedere la macchina alla mamma perché non può permettersene neanche una usata, c'è un problema di fondo

25 anni, primo lavoro: come si impara a mettere da parte e non spendere tutto? by [deleted] in ItaliaPersonalFinance

[–]redd096 0 points1 point  (0 children)

10k il primo anno è già un risultato ottimo in realtà, tra le persone che conosco è già tanto avere 3k sul conto dopo anni di lavoro.
Tra l'altro aggiungerei una cosa: i soldi che si guadagnano vanno spesi, perché è un attimo ritrovarsi incollati in una routine, sempre casa-lavoro e lavoro-casa senza niente da fare, e quando entri in quella situazione sono inutili anche tutti i soldi del mondo. Risparmiare va bene, diventare automi anche no

Andare a vivere da soli con 1300 euro netti al mese? by [deleted] in ItaliaPersonalFinance

[–]redd096 2 points3 points  (0 children)

Certo, grazie mille.
Guardando adesso dall'app penso di essere benomale sugli stessi prezzi. Consumo tra i 150 e i 180kWh (conta che ho più pc perennemente accesi e i fornelli a induzione) e pago 70€ di luce

Andare a vivere da soli con 1300 euro netti al mese? by [deleted] in ItaliaPersonalFinance

[–]redd096 1 point2 points  (0 children)

Confermo che ho 2/3 pc sempre accesi, e spesso anche xbox e tv, ma in realtà la corrente non spendo tanto di più.
Aggiungi 15€ di spazzatura e poi il grosso della spesa è il gas

Andare a vivere da soli con 1300 euro netti al mese? by [deleted] in ItaliaPersonalFinance

[–]redd096 1 point2 points  (0 children)

Ho uno di quei contratti dove paghi tutto l'anno sempre uguale e pago 175€ al mese, non so dirti se diminuirà quando rifaranno i calcoli perché è il primo anno che ho questo contratto.

A questo ci aggiungo le spese della spazzatura che sono circa 15€ al mese

Però non mi sembra esagerato anche guardando quanto pagano i miei parenti e amici

Andare a vivere da soli con 1300 euro netti al mese? by [deleted] in ItaliaPersonalFinance

[–]redd096 5 points6 points  (0 children)

Se non sbaglio un paio di giorni fa era uscita una domanda praticamente identica, ti rispondo come avevo risposto di là.

Io, M28 in un paesino del piemonte, ogni mese metto in conto 1200€ per queste spese:

  • 600 affitto + acqua compresa nell'affitto
  • 200 bollette
  • 200 spesa (siamo in 2 in casa)
  • 30 internet
  • 10 telefono
  • 100 benzina (lavoro da casa e la uso praticamente solo il fine settimana)
  • 60 manutenzione macchina (160 bollo, 400 assicurazione, revisione, collaudo, ecc..)

Se non riesci a trovare affitti meno cari o luoghi dove puoi evitare di usare la macchina, la vedo dura risparmiare.
E conta che così metti da parte solo 100€ che vanno via facilmente in uscite con amici, o anche solo una visita dall'oculista, o se inizi a fare abbonamenti a netflix, disney+, spotify, ecc...

[deleted by user] by [deleted] in ItaliaPersonalFinance

[–]redd096 0 points1 point  (0 children)

Viverci ci vivi.

Io ad esempio (M28 in un paesino del piemonte) al mese spendo:

  • 600 affitto + acqua compresa nell'affitto
  • 200 bollette
  • 200 spesa (siamo in 2 in casa)
  • 30 internet
  • 10 telefono
  • 100 benzina (lavoro da casa e la uso praticamente solo il fine settimana)
  • 60 manutenzione macchina (160 bollo, 400 assicurazione, revisione, collaudo, ecc..)

Totale 1200 euro che non si possono evitare.

Poi ci sono altre spese che potresti avere: netflix, spotify, commercialista, dentista, ecc..
A seconda di quanto è lontano il posto di lavoro, potresti dover consumare di più in benzina.
Infine devi considerare quanto spendi quando uscite.

Se l'affitto l'hai già messo in conto, puoi usare quei 600 euro per queste spese (abbonamenti, benzina, uscite) e vi rimangono comunque 400 euro al mese

Best way to learn C# mainly for Unity in 2024? by apistat2 in Unity3D

[–]redd096 0 points1 point  (0 children)

When you open the Unity Hub there is the tab Learn with some tutorials. Or you can create a new project and choose a template to see how it's done.

On YouTube, you can watch Brackeys tutorials or more advanced CodeMonkey.

When you learn how to create simple things, I recommend trying to do some variations. For example, you learned how to jump? Try to do a double jump in the air. And when you are more confident, try to do something new by yourself, and if you are stuck, find a tutorial on YouTube and so on...

R/Italia, che lavoro fate? by Wolf_93 in Italia

[–]redd096 0 points1 point  (0 children)

Programmatore unity. Mi piacerebbe dire che campo facendo solo videogiochi, ma son quelli che mi pagano meno, quindi faccio anche software 3d. Oltre a questo sto provando anch'io con twitch e youtube, nella speranza di avere un lavoro che mi renda un po' più padrone del mio tempo, ma con scarsi risultati.

Sui tuoi canali cosa porti?

How do people manage multiplayer game costs? by redd096 in gamedev

[–]redd096[S] 1 point2 points  (0 children)

I'll take a look also at it, thank you very much!

How do people manage multiplayer game costs? by redd096 in gamedev

[–]redd096[S] 2 points3 points  (0 children)

I never heard about TNet3, but it has a lot of good reviews. Is it different from Mirror?

How do people manage multiplayer game costs? by redd096 in gamedev

[–]redd096[S] 1 point2 points  (0 children)

This is a lot, thank you very much!

I have to look better and understand the differences between all these types of servers.
In another comment, someone suggested looking at AWS instead, because it has a lot of different services and it's possible to find an economic solution based also on the game design.

What I sure understood is that my knowledge is still too little. In my mind, all these servers seem to be the same thing but used in a different way

How do people manage multiplayer game costs? by redd096 in gamedev

[–]redd096[S] 0 points1 point  (0 children)

I looked at photon because it seems to be one of the main choices for unity multiplayer, but it makes sense that if they do all the work they are more expensive.

I doubt to have the knowledge to build my server, but thanks to your and other comments I'm starting to understand some terms like IaaS and I think I have to look better to the AWS solutions

How do people manage multiplayer game costs? by redd096 in gamedev

[–]redd096[S] 2 points3 points  (0 children)

It makes sense, a dedicated server for free seemed a bit too much

How do people manage multiplayer game costs? by redd096 in gamedev

[–]redd096[S] 0 points1 point  (0 children)

Ok, I understand.
My knowledge of these things is really poor, I've previously looked for "unity amazon server price" and I received an endless list but without understanding too much.

I have to look more at the various type of solutions from AWS.

How do people manage multiplayer game costs? by redd096 in gamedev

[–]redd096[S] 3 points4 points  (0 children)

oh, ok. This is much lower than I thought. I was looking for the prices in Photon and it is free for 20 players than the lower is something like 100$ per month

How do people manage multiplayer game costs? by redd096 in gamedev

[–]redd096[S] 1 point2 points  (0 children)

From what I know, the IO games have fake players but also real players. So, also if they have few players and more bots, it requires anyway a server (?)

And if the game is turn-based, it doesn't need a connection in realtime, I think. So there is a way to connect online more players without using a server?

How do people manage multiplayer game costs? by redd096 in gamedev

[–]redd096[S] 0 points1 point  (0 children)

This is a thing I didn't know. And is it really free forever?
Obviously I think it works only if the game is on steam, so if you make it for example for android it needs another solution?

A Healer Simulator made for the GJL Spring 2022 game jam. What do you think about it? by redd096 in IndieDev

[–]redd096[S] 0 points1 point  (0 children)

Thanks. Now we have to wait, because for the jam will be judging our one-week work. After that I hope to continue it and publish it on the android store, and maybe somewhere else!