I want to compute, for example, the homology of a genus-$g$ orientable surface $M_g$ with $R$ coefficients, where $R$ is any associative, commutative, and unital ring. The construction of the surfaces would be like Hatcher's illustration below:
As in the illustration, such a surface can be given a CW structure with one $0$-cell, 2$g$ $1$-cells, and one $2$-cell, with the quotients as indicated by the arrows. Hence, we have a cellular chain complex:
$$0 \xrightarrow{d_3} R \xrightarrow{d_2} \oplus_{i = 1}^{2g} R \xrightarrow{d_1} R \xrightarrow{d_0} 0$$
Now if this were with $R = \mathbb{Z}$, then the computation of the chain maps would go as follows: We only have one $0$-cell, so $d_1 = 0$. Then for each $1$-cell, the generator of the $2$-cell is sent once in positive direction of the $1$-cell and once in the negative direction for the other corresponding $1$-cell, and so the degree of this map is $0$. Here, by degree, we mean the multiplying factor of the induced map $\mathbb{Z} \rightarrow \mathbb{Z}$ from $S^1 \rightarrow S^1$. Thus, since the degree is $0$ for all the $1$-cells, $d_2 = 0$. Hence, we obtain that:
$$\tilde{H}_i(M_g; \mathbb{Z}) = \begin{cases} \mathbb{Z} & \text{for } i = 0,2 \\ \mathbb{Z}^{2g} & \text{for } i = 1 \\ 0 & \text{otherwise} \end{cases}$$
But I'm not sure what to do if $R \neq \mathbb{Z}$. We can't make any arguments about where "the generator" is mapped to since $R$ may not be generated by one element, and we can't make any arguments about degrees since that only applies to $\mathbb{Z}$.